Home
last modified time | relevance | path

Searched refs:digestsize (Results 1 – 25 of 153) sorted by relevance

1234567

/Linux-v5.10/drivers/crypto/qce/
Dsha.c39 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/
Dcaamhash.c203 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 …]
Dcaamhash_desc.c29 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()
Dcaamhash_desc.h25 int digestsize, int ctx_len, bool import_ctx, int era);
28 int digestsize, int ctx_len);
/Linux-v5.10/arch/x86/crypto/
Dsha256_ssse3_glue.c102 .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,
Dsha512_ssse3_glue.c100 .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,
Dblake2s-glue.c141 .digestsize = BLAKE2S_128_HASH_SIZE,
156 .digestsize = BLAKE2S_160_HASH_SIZE,
171 .digestsize = BLAKE2S_224_HASH_SIZE,
186 .digestsize = BLAKE2S_256_HASH_SIZE,
Dsha1_ssse3_glue.c88 .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/
Dcipher.c529 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 …]
Dspu.c559 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/
Dblake2b_generic.c165 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,
Dblake2s_generic.c95 .digestsize = BLAKE2S_128_HASH_SIZE,
110 .digestsize = BLAKE2S_160_HASH_SIZE,
125 .digestsize = BLAKE2S_224_HASH_SIZE,
140 .digestsize = BLAKE2S_256_HASH_SIZE,
Dsha256_generic.c74 .digestsize = SHA256_DIGEST_SIZE,
88 .digestsize = SHA224_DIGEST_SIZE,
/Linux-v5.10/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-hash.c273 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/
Dcc_hash.c118 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/
Dsun8i-ss-hash.c326 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/
Dsha3-ce-glue.c102 .digestsize = SHA3_224_DIGEST_SIZE,
113 .digestsize = SHA3_256_DIGEST_SIZE,
124 .digestsize = SHA3_384_DIGEST_SIZE,
135 .digestsize = SHA3_512_DIGEST_SIZE,
Dsha256-glue.c68 .digestsize = SHA256_DIGEST_SIZE,
80 .digestsize = SHA224_DIGEST_SIZE,
148 .digestsize = SHA256_DIGEST_SIZE,
160 .digestsize = SHA224_DIGEST_SIZE,
Dsha512-glue.c56 .digestsize = SHA512_DIGEST_SIZE,
68 .digestsize = SHA384_DIGEST_SIZE,
Dcrct10dif-ce-glue.c75 .digestsize = CRC_T10DIF_DIGEST_SIZE,
87 .digestsize = CRC_T10DIF_DIGEST_SIZE,
/Linux-v5.10/arch/arm/crypto/
Dsha512-neon-glue.c71 .digestsize = SHA384_DIGEST_SIZE,
86 .digestsize = SHA512_DIGEST_SIZE,
Dsha256_neon_glue.c67 .digestsize = SHA256_DIGEST_SIZE,
81 .digestsize = SHA224_DIGEST_SIZE,
Dsha2-ce-glue.c74 .digestsize = SHA224_DIGEST_SIZE,
88 .digestsize = SHA256_DIGEST_SIZE,
Dsha512-glue.c58 .digestsize = SHA384_DIGEST_SIZE,
72 .digestsize = SHA512_DIGEST_SIZE,
Dsha256_glue.c58 .digestsize = SHA256_DIGEST_SIZE,
72 .digestsize = SHA224_DIGEST_SIZE,

1234567