Home
last modified time | relevance | path

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

123456

/Linux-v4.19/drivers/crypto/caam/
Dcaamhash.c188 u8 *result, int digestsize) in map_seq_out_ptr_result() argument
192 dst_dma = dma_map_single(jrdev, result, digestsize, DMA_FROM_DEVICE); in map_seq_out_ptr_result()
193 append_seq_out_ptr(desc, dst_dma, digestsize, 0); in map_seq_out_ptr_result()
244 static inline void ahash_gen_sh_desc(u32 *desc, u32 state, int digestsize, in ahash_gen_sh_desc() argument
288 append_seq_store(desc, digestsize, LDST_CLASS_2_CCB | in ahash_gen_sh_desc()
295 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() local
328 ahash_gen_sh_desc(desc, OP_ALG_AS_FINALIZE, digestsize, ctx, true, in ahash_set_sh_desc()
340 ahash_gen_sh_desc(desc, OP_ALG_AS_INITFINAL, digestsize, ctx, false, in ahash_set_sh_desc()
356 u32 *keylen, u8 *key_out, u32 digestsize) in hash_digest_key() argument
379 dst_dma = dma_map_single(jrdev, (void *)key_out, digestsize, in hash_digest_key()
[all …]
/Linux-v4.19/drivers/crypto/qce/
Dsha.c46 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_done() local
57 memcpy(rctx->digest, result->auth_iv, digestsize); in qce_ahash_done()
59 memcpy(req->result, result->auth_iv, digestsize); in qce_ahash_done()
152 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_export() local
161 rctx->digest, digestsize); in qce_ahash_export()
168 rctx->digest, digestsize); in qce_ahash_export()
182 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_import_common() local
206 digestsize); in qce_import_common()
355 unsigned int digestsize = crypto_ahash_digestsize(tfm); in qce_ahash_hmac_setkey() local
374 if (digestsize == SHA1_DIGEST_SIZE) in qce_ahash_hmac_setkey()
[all …]
/Linux-v4.19/drivers/crypto/ccree/
Dcc_hash.c104 unsigned int digestsize) in cc_map_result() argument
108 digestsize, DMA_BIDIRECTIONAL); in cc_map_result()
111 digestsize); in cc_map_result()
115 digestsize, state->digest_result_buff, in cc_map_result()
255 unsigned int digestsize, u8 *result) in cc_unmap_result() argument
258 dma_unmap_single(dev, state->digest_result_dma_addr, digestsize, in cc_unmap_result()
262 &state->digest_result_dma_addr, digestsize); in cc_unmap_result()
263 memcpy(result, state->digest_result_buff, digestsize); in cc_unmap_result()
288 u32 digestsize = crypto_ahash_digestsize(tfm); in cc_digest_complete() local
293 cc_unmap_result(dev, state, digestsize, req->result); in cc_digest_complete()
[all …]
/Linux-v4.19/arch/x86/crypto/
Dsha256_ssse3_glue.c102 .digestsize = SHA256_DIGEST_SIZE,
116 .digestsize = SHA224_DIGEST_SIZE,
168 .digestsize = SHA256_DIGEST_SIZE,
182 .digestsize = SHA224_DIGEST_SIZE,
250 .digestsize = SHA256_DIGEST_SIZE,
264 .digestsize = SHA224_DIGEST_SIZE,
330 .digestsize = SHA256_DIGEST_SIZE,
344 .digestsize = SHA224_DIGEST_SIZE,
Dsha512_ssse3_glue.c102 .digestsize = SHA512_DIGEST_SIZE,
116 .digestsize = SHA384_DIGEST_SIZE,
179 .digestsize = SHA512_DIGEST_SIZE,
193 .digestsize = SHA384_DIGEST_SIZE,
250 .digestsize = SHA512_DIGEST_SIZE,
264 .digestsize = SHA384_DIGEST_SIZE,
Dsha1_ssse3_glue.c97 .digestsize = SHA1_DIGEST_SIZE,
149 .digestsize = SHA1_DIGEST_SIZE,
240 .digestsize = SHA1_DIGEST_SIZE,
297 .digestsize = SHA1_DIGEST_SIZE,
/Linux-v4.19/drivers/crypto/bcm/
Dcipher.c575 u8 rx_frag_num, unsigned int digestsize, in spu_ahash_rx_sg_create() argument
593 sg_set_buf(sg++, rctx->msg_buf.digest, digestsize); in spu_ahash_rx_sg_create()
732 unsigned int digestsize; in handle_ahash_req() local
825 digestsize = spu->spu_digest_size(ctx->digestsize, ctx->auth.alg, in handle_ahash_req()
827 hash_parms.digestsize = digestsize; in handle_ahash_req()
847 hash_parms.key_len = digestsize; in handle_ahash_req()
913 err = spu_ahash_rx_sg_create(mssg, rctx, rx_frag_num, digestsize, in handle_ahash_req()
955 req->result, ctx->digestsize, NULL, 0); in spu_hmac_outer_hash()
959 req->result, ctx->digestsize, NULL, 0); in spu_hmac_outer_hash()
963 req->result, ctx->digestsize, NULL, 0); in spu_hmac_outer_hash()
[all …]
Dspu.c577 u32 digestsize = alg_digest_size; in spum_digest_size() local
584 digestsize = SHA256_DIGEST_SIZE; in spum_digest_size()
586 digestsize = SHA512_DIGEST_SIZE; in spum_digest_size()
588 return digestsize; in spum_digest_size()
650 cipher_len -= hash_parms->digestsize; in spum_create_request()
653 auth_len -= hash_parms->digestsize; in spum_create_request()
673 flow_log(" digestsize: %u\n", hash_parms->digestsize); in spum_create_request()
745 if (hash_parms->digestsize == 64) in spum_create_request()
749 (hash_parms->digestsize / 4) << ICV_SIZE_SHIFT; in spum_create_request()
788 data_size -= hash_parms->digestsize; in spum_create_request()
[all …]
/Linux-v4.19/arch/arm64/crypto/
Dsha3-ce-glue.c101 .digestsize = SHA3_224_DIGEST_SIZE,
112 .digestsize = SHA3_256_DIGEST_SIZE,
123 .digestsize = SHA3_384_DIGEST_SIZE,
134 .digestsize = SHA3_512_DIGEST_SIZE,
Dsha256-glue.c62 .digestsize = SHA256_DIGEST_SIZE,
74 .digestsize = SHA224_DIGEST_SIZE,
145 .digestsize = SHA256_DIGEST_SIZE,
157 .digestsize = SHA224_DIGEST_SIZE,
Dsha512-glue.c57 .digestsize = SHA512_DIGEST_SIZE,
69 .digestsize = SHA384_DIGEST_SIZE,
Dsha512-ce-glue.c86 .digestsize = SHA384_DIGEST_SIZE,
98 .digestsize = SHA512_DIGEST_SIZE,
Dsha2-ce-glue.c112 .digestsize = SHA224_DIGEST_SIZE,
126 .digestsize = SHA256_DIGEST_SIZE,
/Linux-v4.19/arch/arm/crypto/
Dsha256_neon_glue.c72 .digestsize = SHA256_DIGEST_SIZE,
86 .digestsize = SHA224_DIGEST_SIZE,
Dsha512-neon-glue.c73 .digestsize = SHA384_DIGEST_SIZE,
88 .digestsize = SHA512_DIGEST_SIZE,
Dsha256_glue.c64 .digestsize = SHA256_DIGEST_SIZE,
78 .digestsize = SHA224_DIGEST_SIZE,
Dsha512-glue.c61 .digestsize = SHA384_DIGEST_SIZE,
75 .digestsize = SHA512_DIGEST_SIZE,
Dsha2-ce-glue.c76 .digestsize = SHA224_DIGEST_SIZE,
90 .digestsize = SHA256_DIGEST_SIZE,
/Linux-v4.19/drivers/crypto/ux500/hash/
Dhash_core.c942 memcpy(req->result, digest, ctx->digestsize); in hash_dma_final()
992 if (!ret && likely(zero_hash_size == ctx->digestsize) && in hash_hw_final()
994 memcpy(req->result, &zero_hash[0], ctx->digestsize); in hash_hw_final()
1004 zero_hash_size == ctx->digestsize ? in hash_hw_final()
1043 memcpy(req->result, digest, ctx->digestsize); in hash_hw_final()
1359 ctx->digestsize = SHA1_DIGEST_SIZE; in ahash_sha1_init()
1372 ctx->digestsize = SHA256_DIGEST_SIZE; in ahash_sha256_init()
1425 ctx->digestsize = SHA1_DIGEST_SIZE; in hmac_sha1_init()
1438 ctx->digestsize = SHA256_DIGEST_SIZE; in hmac_sha256_init()
1507 ctx->digestsize = hash_alg->hash.halg.digestsize; in hash_cra_init()
[all …]
/Linux-v4.19/crypto/
Dsha3_generic.c246 .digestsize = SHA3_224_DIGEST_SIZE,
256 .digestsize = SHA3_256_DIGEST_SIZE,
266 .digestsize = SHA3_384_DIGEST_SIZE,
276 .digestsize = SHA3_512_DIGEST_SIZE,
/Linux-v4.19/include/crypto/
Dhash.h48 unsigned int digestsize; member
193 unsigned int digestsize member
332 return crypto_hash_alg_common(tfm)->digestsize; in crypto_ahash_digestsize()
752 return crypto_shash_alg(tfm)->digestsize; in crypto_shash_digestsize()
/Linux-v4.19/arch/s390/crypto/
Dsha256_s390.c62 .digestsize = SHA256_DIGEST_SIZE,
98 .digestsize = SHA224_DIGEST_SIZE,
Dsha512_s390.c67 .digestsize = SHA512_DIGEST_SIZE,
105 .digestsize = SHA384_DIGEST_SIZE,
Dcrc32-vx.c237 .digestsize = CRC32_DIGEST_SIZE,
258 .digestsize = CRC32_DIGEST_SIZE,
279 .digestsize = CRC32_DIGEST_SIZE,
/Linux-v4.19/drivers/crypto/inside-secure/
Dsafexcel_hash.c81 unsigned int digestsize) in safexcel_context_control() argument
117 for (i = 0; i < digestsize / sizeof(u32); i++) in safexcel_context_control()
797 .digestsize = SHA1_DIGEST_SIZE,
1031 .digestsize = SHA1_DIGEST_SIZE,
1094 .digestsize = SHA256_DIGEST_SIZE,
1157 .digestsize = SHA224_DIGEST_SIZE,
1214 .digestsize = SHA224_DIGEST_SIZE,
1271 .digestsize = SHA256_DIGEST_SIZE,
1342 .digestsize = SHA512_DIGEST_SIZE,
1413 .digestsize = SHA384_DIGEST_SIZE,
[all …]

123456