Searched refs:hmac_tfm (Results 1 – 9 of 9) sorted by relevance
/Linux-v5.10/fs/crypto/ |
D | hkdf.c | 43 static int hkdf_extract(struct crypto_shash *hmac_tfm, const u8 *ikm, in hkdf_extract() argument 49 err = crypto_shash_setkey(hmac_tfm, default_salt, HKDF_HASHLEN); in hkdf_extract() 53 return crypto_shash_tfm_digest(hmac_tfm, ikm, ikmlen, prk); in hkdf_extract() 66 struct crypto_shash *hmac_tfm; in fscrypt_init_hkdf() local 70 hmac_tfm = crypto_alloc_shash(HKDF_HMAC_ALG, 0, 0); in fscrypt_init_hkdf() 71 if (IS_ERR(hmac_tfm)) { in fscrypt_init_hkdf() 73 PTR_ERR(hmac_tfm)); in fscrypt_init_hkdf() 74 return PTR_ERR(hmac_tfm); in fscrypt_init_hkdf() 77 if (WARN_ON(crypto_shash_digestsize(hmac_tfm) != sizeof(prk))) { in fscrypt_init_hkdf() 82 err = hkdf_extract(hmac_tfm, master_key, master_key_size, prk); in fscrypt_init_hkdf() [all …]
|
D | fscrypt_private.h | 302 struct crypto_shash *hmac_tfm; member
|
/Linux-v5.10/fs/ubifs/ |
D | auth.c | 50 return crypto_shash_tfm_digest(c->hmac_tfm, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac() 319 c->hmac_tfm = crypto_alloc_shash(hmac_name, 0, 0); in ubifs_init_authentication() 320 if (IS_ERR(c->hmac_tfm)) { in ubifs_init_authentication() 321 err = PTR_ERR(c->hmac_tfm); in ubifs_init_authentication() 326 c->hmac_desc_len = crypto_shash_digestsize(c->hmac_tfm); in ubifs_init_authentication() 334 err = crypto_shash_setkey(c->hmac_tfm, ukp->data, ukp->datalen); in ubifs_init_authentication() 348 crypto_free_shash(c->hmac_tfm); in ubifs_init_authentication() 370 crypto_free_shash(c->hmac_tfm); in __ubifs_exit_authentication() 390 SHASH_DESC_ON_STACK(shash, c->hmac_tfm); in ubifs_node_calc_hmac() 397 shash->tfm = c->hmac_tfm; in ubifs_node_calc_hmac() [all …]
|
D | replay.c | 612 err = crypto_shash_tfm_digest(c->hmac_tfm, hash, in authenticate_sleb()
|
D | ubifs.h | 1470 struct crypto_shash *hmac_tfm; member
|
/Linux-v5.10/drivers/crypto/ccp/ |
D | ccp-crypto-sha.c | 275 struct crypto_shash *shash = ctx->u.sha.hmac_tfm; in ccp_sha_setkey() 334 struct crypto_shash *hmac_tfm; in ccp_hmac_sha_cra_init() local 336 hmac_tfm = crypto_alloc_shash(alg->child_alg, 0, 0); in ccp_hmac_sha_cra_init() 337 if (IS_ERR(hmac_tfm)) { in ccp_hmac_sha_cra_init() 340 return PTR_ERR(hmac_tfm); in ccp_hmac_sha_cra_init() 343 ctx->u.sha.hmac_tfm = hmac_tfm; in ccp_hmac_sha_cra_init() 352 if (ctx->u.sha.hmac_tfm) in ccp_hmac_sha_cra_exit() 353 crypto_free_shash(ctx->u.sha.hmac_tfm); in ccp_hmac_sha_cra_exit()
|
D | ccp-crypto.h | 195 struct crypto_shash *hmac_tfm; member
|
/Linux-v5.10/security/integrity/evm/ |
D | evm.h | 40 extern struct crypto_shash *hmac_tfm;
|
D | evm_crypto.c | 27 struct crypto_shash *hmac_tfm; variable 84 tfm = &hmac_tfm; in init_desc()
|