/linux/drivers/crypto/caam/ |
H A D | caamhash.c | 208 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 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()
|
H A D | caamhash_desc.h | 25 int digestsize, int ctx_len, bool import_ctx, int era); 28 int digestsize, int ctx_len);
|
/linux/drivers/crypto/starfive/ |
H A D | jh7110-hash.c | 457 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 D | sha256.c | 325 .digestsize = SHA224_DIGEST_SIZE, 343 .digestsize = SHA256_DIGEST_SIZE, 362 .digestsize = SHA224_DIGEST_SIZE, 382 .digestsize = SHA256_DIGEST_SIZE,
|
H A D | sha512.c | 331 .digestsize = SHA384_DIGEST_SIZE, 349 .digestsize = SHA512_DIGEST_SIZE, 368 .digestsize = SHA384_DIGEST_SIZE, 388 .digestsize = SHA512_DIGEST_SIZE,
|
H A D | sha1.c | 188 .digestsize = SHA1_DIGEST_SIZE, 207 .digestsize = SHA1_DIGEST_SIZE,
|
H A D | wp512.c | 1087 .digestsize = WP512_DIGEST_SIZE, 1100 .digestsize = WP384_DIGEST_SIZE, 1113 .digestsize = WP256_DIGEST_SIZE,
|
H A D | crc32.c | 101 .digestsize = CHKSUM_DIGEST_SIZE,
|
H A D | testmgr.c | 1264 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 D | crc32c.c | 131 .digestsize = CHKSUM_DIGEST_SIZE,
|
/linux/drivers/net/ppp/ |
H A D | ppp_mppe.c | 175 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 D | common.c | 154 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 D | chcr_algo.c | 2095 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 D | chcr_algo.h | 327 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 D | spu.h | 131 u8 digestsize; member 269 void spum_ccm_update_iv(unsigned int digestsize,
|
H A D | cipher.h | 191 unsigned int digestsize; member 398 void (*spu_ccm_update_iv)(unsigned int digestsize,
|
H A D | spu2.h | 211 void spu2_ccm_update_iv(unsigned int digestsize,
|
/linux/security/integrity/ima/ |
H A D | ima_appraise.c | 452 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 D | ima_template_lib.c | 289 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 D | hash.h | 51 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 D | nhpoly1305-avx2-glue.c | 51 .digestsize = POLY1305_DIGEST_SIZE,
|
H A D | nhpoly1305-sse2-glue.c | 51 .digestsize = POLY1305_DIGEST_SIZE,
|
/linux/arch/arm/crypto/ |
H A D | nhpoly1305-neon-glue.c | 51 .digestsize = POLY1305_DIGEST_SIZE,
|
/linux/arch/arm64/crypto/ |
H A D | nhpoly1305-neon-glue.c | 51 .digestsize = POLY1305_DIGEST_SIZE,
|