Home
last modified time | relevance | path

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

12

/linux/drivers/crypto/caam/
H A Dcaamhash.c208 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() local
238 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_FINALIZE, digestsize, in ahash_set_sh_desc()
249 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INITFINAL, digestsize, in ahash_set_sh_desc()
264 int digestsize = crypto_ahash_digestsize(ahash); in axcbc_set_sh_desc() local
281 digestsize, ctx->ctx_len); in axcbc_set_sh_desc()
304 digestsize, ctx->ctx_len); in axcbc_set_sh_desc()
316 int digestsize = crypto_ahash_digestsize(ahash); in acmac_set_sh_desc() local
333 digestsize, ctx->ctx_len); in acmac_set_sh_desc()
353 digestsize, ctx->ctx_len); in acmac_set_sh_desc()
365 u32 digestsize) in hash_digest_key() argument
[all …]
H A 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()
H A Dcaamhash_desc.h25 int digestsize, int ctx_len, bool import_ctx, int era);
28 int digestsize, int ctx_len);
/linux/drivers/crypto/starfive/
H A Djh7110-hash.c457 unsigned int digestsize = crypto_ahash_digestsize(hash); in starfive_hash_setkey() local
469 ctx->keylen = digestsize; in starfive_hash_setkey()
471 switch (digestsize) { in starfive_hash_setkey()
566 .digestsize = SHA224_DIGEST_SIZE,
595 .digestsize = SHA224_DIGEST_SIZE,
623 .digestsize = SHA256_DIGEST_SIZE,
652 .digestsize = SHA256_DIGEST_SIZE,
680 .digestsize = SHA384_DIGEST_SIZE,
709 .digestsize = SHA384_DIGEST_SIZE,
737 .digestsize = SHA512_DIGEST_SIZE,
[all …]
/linux/crypto/
H A Dsha256.c325 .digestsize = SHA224_DIGEST_SIZE,
343 .digestsize = SHA256_DIGEST_SIZE,
362 .digestsize = SHA224_DIGEST_SIZE,
382 .digestsize = SHA256_DIGEST_SIZE,
H A Dsha512.c331 .digestsize = SHA384_DIGEST_SIZE,
349 .digestsize = SHA512_DIGEST_SIZE,
368 .digestsize = SHA384_DIGEST_SIZE,
388 .digestsize = SHA512_DIGEST_SIZE,
H A Dsha1.c188 .digestsize = SHA1_DIGEST_SIZE,
207 .digestsize = SHA1_DIGEST_SIZE,
H A Dwp512.c1087 .digestsize = WP512_DIGEST_SIZE,
1100 .digestsize = WP384_DIGEST_SIZE,
1113 .digestsize = WP256_DIGEST_SIZE,
H A Dcrc32.c101 .digestsize = CHKSUM_DIGEST_SIZE,
H A Dtestmgr.c1264 const u8 *result, unsigned int digestsize, in check_hash_result() argument
1270 if (memcmp(result, vec->digest, digestsize) != 0) { in check_hash_result()
1275 if (!testmgr_is_poison(&result[digestsize], TESTMGR_POISON_LEN)) { in check_hash_result()
1302 const unsigned int digestsize = crypto_shash_digestsize(tfm); in test_shash_vec_cfg() local
1340 testmgr_poison(result, digestsize + TESTMGR_POISON_LEN); in test_shash_vec_cfg()
1437 return check_hash_result("shash", result, digestsize, vec, vec_name, in test_shash_vec_cfg()
1459 u8 *result, unsigned int digestsize, in check_nonfinal_ahash_op() argument
1468 if (!testmgr_is_poison(result, digestsize)) { in check_nonfinal_ahash_op()
1485 const unsigned int digestsize = crypto_ahash_digestsize(tfm); in test_ahash_vec_cfg() local
1527 testmgr_poison(result, digestsize + TESTMGR_POISON_LEN); in test_ahash_vec_cfg()
[all …]
H A Dcrc32c.c131 .digestsize = CHKSUM_DIGEST_SIZE,
/linux/drivers/net/ppp/
H A Dppp_mppe.c175 unsigned int digestsize; in mppe_alloc() local
200 digestsize = crypto_shash_digestsize(shash); in mppe_alloc()
201 if (digestsize < MPPE_MAX_KEY_LEN) in mppe_alloc()
204 state->sha1_digest = kmalloc(digestsize, GFP_KERNEL); in mppe_alloc()
/linux/drivers/crypto/qce/
H A Dcommon.c154 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_setup_regs_ahash() local
175 auth_cfg = qce_auth_cfg(rctx->flags, rctx->authklen, digestsize); in qce_setup_regs_ahash()
190 memcpy(auth, rctx->digest, digestsize); in qce_setup_regs_ahash()
192 qce_cpu_to_be32p_array(auth, rctx->digest, digestsize); in qce_setup_regs_ahash()
203 auth_cfg = qce_auth_cfg(rctx->flags, 0, digestsize); in qce_setup_regs_ahash()
/linux/drivers/crypto/chelsio/
H A Dchcr_algo.c2095 int digestsize, updated_digestsize; in chcr_handle_ahash_resp() local
2102 digestsize = crypto_ahash_digestsize(crypto_ahash_reqtfm(req)); in chcr_handle_ahash_resp()
2103 updated_digestsize = digestsize; in chcr_handle_ahash_resp()
2104 if (digestsize == SHA224_DIGEST_SIZE) in chcr_handle_ahash_resp()
2106 else if (digestsize == SHA384_DIGEST_SIZE) in chcr_handle_ahash_resp()
2119 digestsize); in chcr_handle_ahash_resp()
2205 unsigned int digestsize = crypto_ahash_digestsize(tfm); in chcr_ahash_setkey() local
2221 keylen = digestsize; in chcr_ahash_setkey()
2234 updated_digestsize = digestsize; in chcr_ahash_setkey()
2235 if (digestsize == SHA224_DIGEST_SIZE) in chcr_ahash_setkey()
[all …]
H A Dchcr_algo.h327 static inline void copy_hash_init_values(char *key, int digestsize) in copy_hash_init_values() argument
335 switch (digestsize) { in copy_hash_init_values()
/linux/drivers/crypto/bcm/
H A Dspu.h131 u8 digestsize; member
269 void spum_ccm_update_iv(unsigned int digestsize,
H A Dcipher.h191 unsigned int digestsize; member
398 void (*spu_ccm_update_iv)(unsigned int digestsize,
H A Dspu2.h211 void spu2_ccm_update_iv(unsigned int digestsize,
/linux/security/integrity/ima/
H A Dima_appraise.c452 u32 digestsize = 0; in ima_check_blacklist() local
459 ima_get_modsig_digest(modsig, &hash_algo, &digest, &digestsize); in ima_check_blacklist()
461 rc = is_binary_blacklisted(digest, digestsize); in ima_check_blacklist()
466 process_buffer_measurement(&nop_mnt_idmap, NULL, digest, digestsize, in ima_check_blacklist()
H A Dima_template_lib.c289 static int ima_eventdigest_init_common(const u8 *digest, u32 digestsize, in ima_eventdigest_init_common() argument
322 memcpy(buffer + offset, digest, digestsize); in ima_eventdigest_init_common()
337 return ima_write_template_field_data(buffer, offset + digestsize, in ima_eventdigest_init_common()
/linux/include/crypto/
H A Dhash.h51 unsigned int digestsize; \
391 return crypto_hash_alg_common(tfm)->digestsize; in crypto_ahash_digestsize()
815 return crypto_shash_alg(tfm)->digestsize; in crypto_shash_digestsize()
/linux/arch/x86/crypto/
H A Dnhpoly1305-avx2-glue.c51 .digestsize = POLY1305_DIGEST_SIZE,
H A Dnhpoly1305-sse2-glue.c51 .digestsize = POLY1305_DIGEST_SIZE,
/linux/arch/arm/crypto/
H A Dnhpoly1305-neon-glue.c51 .digestsize = POLY1305_DIGEST_SIZE,
/linux/arch/arm64/crypto/
H A Dnhpoly1305-neon-glue.c51 .digestsize = POLY1305_DIGEST_SIZE,

12