/Linux-v5.10/drivers/crypto/qce/ |
D | sha.c | 39 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_done() local 50 memcpy(rctx->digest, result->auth_iv, digestsize); in qce_ahash_done() 52 memcpy(req->result, result->auth_iv, digestsize); in qce_ahash_done() 145 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_export() local 154 rctx->digest, digestsize); in qce_ahash_export() 161 rctx->digest, digestsize); in qce_ahash_export() 175 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_import_common() local 199 digestsize); in qce_import_common() 318 tmpl->alg.ahash.halg.digestsize); in qce_ahash_final() 355 tmpl->alg.ahash.halg.digestsize); in qce_ahash_digest() [all …]
|
/Linux-v5.10/drivers/crypto/caam/ |
D | caamhash.c | 203 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() local 233 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_FINALIZE, digestsize, in ahash_set_sh_desc() 244 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INITFINAL, digestsize, in ahash_set_sh_desc() 259 int digestsize = crypto_ahash_digestsize(ahash); in axcbc_set_sh_desc() local 276 digestsize, ctx->ctx_len); in axcbc_set_sh_desc() 299 digestsize, ctx->ctx_len); in axcbc_set_sh_desc() 311 int digestsize = crypto_ahash_digestsize(ahash); in acmac_set_sh_desc() local 328 digestsize, ctx->ctx_len); in acmac_set_sh_desc() 348 digestsize, ctx->ctx_len); in acmac_set_sh_desc() 360 u32 digestsize) in hash_digest_key() argument [all …]
|
D | caamhash_desc.c | 29 int digestsize, int ctx_len, bool import_ctx, int era) in cnstr_shdsc_ahash() argument 73 append_seq_store(desc, digestsize, LDST_CLASS_2_CCB | in cnstr_shdsc_ahash() 88 int digestsize, int ctx_len) in cnstr_shdsc_sk_hash() argument 134 append_seq_store(desc, digestsize, LDST_CLASS_1_CCB | in cnstr_shdsc_sk_hash()
|
D | caamhash_desc.h | 25 int digestsize, int ctx_len, bool import_ctx, int era); 28 int digestsize, int ctx_len);
|
/Linux-v5.10/arch/x86/crypto/ |
D | sha256_ssse3_glue.c | 102 .digestsize = SHA256_DIGEST_SIZE, 116 .digestsize = SHA224_DIGEST_SIZE, 167 .digestsize = SHA256_DIGEST_SIZE, 181 .digestsize = SHA224_DIGEST_SIZE, 243 .digestsize = SHA256_DIGEST_SIZE, 257 .digestsize = SHA224_DIGEST_SIZE, 318 .digestsize = SHA256_DIGEST_SIZE, 332 .digestsize = SHA224_DIGEST_SIZE,
|
D | sha512_ssse3_glue.c | 100 .digestsize = SHA512_DIGEST_SIZE, 114 .digestsize = SHA384_DIGEST_SIZE, 176 .digestsize = SHA512_DIGEST_SIZE, 190 .digestsize = SHA384_DIGEST_SIZE, 242 .digestsize = SHA512_DIGEST_SIZE, 256 .digestsize = SHA384_DIGEST_SIZE,
|
D | blake2s-glue.c | 141 .digestsize = BLAKE2S_128_HASH_SIZE, 156 .digestsize = BLAKE2S_160_HASH_SIZE, 171 .digestsize = BLAKE2S_224_HASH_SIZE, 186 .digestsize = BLAKE2S_256_HASH_SIZE,
|
D | sha1_ssse3_glue.c | 88 .digestsize = SHA1_DIGEST_SIZE, 137 .digestsize = SHA1_DIGEST_SIZE, 219 .digestsize = SHA1_DIGEST_SIZE, 269 .digestsize = SHA1_DIGEST_SIZE,
|
/Linux-v5.10/drivers/crypto/bcm/ |
D | cipher.c | 529 u8 rx_frag_num, unsigned int digestsize, in spu_ahash_rx_sg_create() argument 547 sg_set_buf(sg++, rctx->msg_buf.digest, digestsize); in spu_ahash_rx_sg_create() 686 unsigned int digestsize; in handle_ahash_req() local 779 digestsize = spu->spu_digest_size(ctx->digestsize, ctx->auth.alg, in handle_ahash_req() 781 hash_parms.digestsize = digestsize; in handle_ahash_req() 801 hash_parms.key_len = digestsize; in handle_ahash_req() 867 err = spu_ahash_rx_sg_create(mssg, rctx, rx_frag_num, digestsize, in handle_ahash_req() 909 req->result, ctx->digestsize, NULL, 0); in spu_hmac_outer_hash() 913 req->result, ctx->digestsize, NULL, 0); in spu_hmac_outer_hash() 917 req->result, ctx->digestsize, NULL, 0); in spu_hmac_outer_hash() [all …]
|
D | spu.c | 559 u32 digestsize = alg_digest_size; in spum_digest_size() local 566 digestsize = SHA256_DIGEST_SIZE; in spum_digest_size() 568 digestsize = SHA512_DIGEST_SIZE; in spum_digest_size() 570 return digestsize; in spum_digest_size() 632 cipher_len -= hash_parms->digestsize; in spum_create_request() 635 auth_len -= hash_parms->digestsize; in spum_create_request() 655 flow_log(" digestsize: %u\n", hash_parms->digestsize); in spum_create_request() 727 if (hash_parms->digestsize == 64) in spum_create_request() 731 (hash_parms->digestsize / 4) << ICV_SIZE_SHIFT; in spum_create_request() 770 data_size -= hash_parms->digestsize; in spum_create_request() [all …]
|
/Linux-v5.10/crypto/ |
D | blake2b_generic.c | 165 const int digestsize = crypto_shash_digestsize(desc->tfm); in blake2b_init() local 171 state->h[0] ^= 0x01010000 | tctx->keylen << 8 | digestsize; in blake2b_init() 219 const int digestsize = crypto_shash_digestsize(desc->tfm); in blake2b_final() local 233 memcpy(out, state->h, digestsize); in blake2b_final() 246 .digestsize = BLAKE2B_160_DIGEST_SIZE, 260 .digestsize = BLAKE2B_256_DIGEST_SIZE, 274 .digestsize = BLAKE2B_384_DIGEST_SIZE, 288 .digestsize = BLAKE2B_512_DIGEST_SIZE,
|
D | blake2s_generic.c | 95 .digestsize = BLAKE2S_128_HASH_SIZE, 110 .digestsize = BLAKE2S_160_HASH_SIZE, 125 .digestsize = BLAKE2S_224_HASH_SIZE, 140 .digestsize = BLAKE2S_256_HASH_SIZE,
|
D | sha256_generic.c | 74 .digestsize = SHA256_DIGEST_SIZE, 88 .digestsize = SHA224_DIGEST_SIZE,
|
/Linux-v5.10/drivers/crypto/allwinner/sun8i-ce/ |
D | sun8i-ce-hash.c | 273 int digestsize; in sun8i_ce_hash_run() local 280 digestsize = algt->alg.hash.halg.digestsize; in sun8i_ce_hash_run() 281 if (digestsize == SHA224_DIGEST_SIZE) in sun8i_ce_hash_run() 282 digestsize = SHA256_DIGEST_SIZE; in sun8i_ce_hash_run() 283 if (digestsize == SHA384_DIGEST_SIZE) in sun8i_ce_hash_run() 284 digestsize = SHA512_DIGEST_SIZE; in sun8i_ce_hash_run() 292 result = kzalloc(digestsize, GFP_KERNEL | GFP_DMA); in sun8i_ce_hash_run() 334 addr_res = dma_map_single(ce->dev, result, digestsize, DMA_FROM_DEVICE); in sun8i_ce_hash_run() 336 cet->t_dst[0].len = cpu_to_le32(digestsize / 4); in sun8i_ce_hash_run() 404 dma_unmap_single(ce->dev, addr_res, digestsize, DMA_FROM_DEVICE); in sun8i_ce_hash_run() [all …]
|
/Linux-v5.10/drivers/crypto/ccree/ |
D | cc_hash.c | 118 unsigned int digestsize) in cc_map_result() argument 122 digestsize, DMA_BIDIRECTIONAL); in cc_map_result() 125 digestsize); in cc_map_result() 129 digestsize, state->digest_result_buff, in cc_map_result() 270 unsigned int digestsize, u8 *result) in cc_unmap_result() argument 273 dma_unmap_single(dev, state->digest_result_dma_addr, digestsize, in cc_unmap_result() 277 &state->digest_result_dma_addr, digestsize); in cc_unmap_result() 278 memcpy(result, state->digest_result_buff, digestsize); in cc_unmap_result() 307 u32 digestsize = crypto_ahash_digestsize(tfm); in cc_digest_complete() local 314 cc_unmap_result(dev, state, digestsize, req->result); in cc_digest_complete() [all …]
|
/Linux-v5.10/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-hash.c | 326 int nr_sgs, err, digestsize; in sun8i_ss_hash_run() local 339 digestsize = algt->alg.hash.halg.digestsize; in sun8i_ss_hash_run() 340 if (digestsize == SHA224_DIGEST_SIZE) in sun8i_ss_hash_run() 341 digestsize = SHA256_DIGEST_SIZE; in sun8i_ss_hash_run() 349 result = kzalloc(digestsize, GFP_KERNEL | GFP_DMA); in sun8i_ss_hash_run() 371 addr_res = dma_map_single(ss->dev, result, digestsize, DMA_FROM_DEVICE); in sun8i_ss_hash_run() 385 rctx->t_dst[i].len = digestsize / 4; in sun8i_ss_hash_run() 424 rctx->t_dst[i].len = digestsize / 4; in sun8i_ss_hash_run() 435 dma_unmap_single(ss->dev, addr_res, digestsize, DMA_FROM_DEVICE); in sun8i_ss_hash_run() 439 memcpy(areq->result, result, algt->alg.hash.halg.digestsize); in sun8i_ss_hash_run()
|
/Linux-v5.10/arch/arm64/crypto/ |
D | sha3-ce-glue.c | 102 .digestsize = SHA3_224_DIGEST_SIZE, 113 .digestsize = SHA3_256_DIGEST_SIZE, 124 .digestsize = SHA3_384_DIGEST_SIZE, 135 .digestsize = SHA3_512_DIGEST_SIZE,
|
D | sha256-glue.c | 68 .digestsize = SHA256_DIGEST_SIZE, 80 .digestsize = SHA224_DIGEST_SIZE, 148 .digestsize = SHA256_DIGEST_SIZE, 160 .digestsize = SHA224_DIGEST_SIZE,
|
D | sha512-glue.c | 56 .digestsize = SHA512_DIGEST_SIZE, 68 .digestsize = SHA384_DIGEST_SIZE,
|
D | crct10dif-ce-glue.c | 75 .digestsize = CRC_T10DIF_DIGEST_SIZE, 87 .digestsize = CRC_T10DIF_DIGEST_SIZE,
|
/Linux-v5.10/arch/arm/crypto/ |
D | sha512-neon-glue.c | 71 .digestsize = SHA384_DIGEST_SIZE, 86 .digestsize = SHA512_DIGEST_SIZE,
|
D | sha256_neon_glue.c | 67 .digestsize = SHA256_DIGEST_SIZE, 81 .digestsize = SHA224_DIGEST_SIZE,
|
D | sha2-ce-glue.c | 74 .digestsize = SHA224_DIGEST_SIZE, 88 .digestsize = SHA256_DIGEST_SIZE,
|
D | sha512-glue.c | 58 .digestsize = SHA384_DIGEST_SIZE, 72 .digestsize = SHA512_DIGEST_SIZE,
|
D | sha256_glue.c | 58 .digestsize = SHA256_DIGEST_SIZE, 72 .digestsize = SHA224_DIGEST_SIZE,
|