Searched refs:hmac_tfm (Results 1 – 5 of 5) sorted by relevance
/fs/crypto/ |
D | hkdf.c | 50 static int hkdf_extract(struct crypto_shash *hmac_tfm, const u8 *ikm, in hkdf_extract() argument 56 err = crypto_shash_setkey(hmac_tfm, default_salt, HKDF_HASHLEN); in hkdf_extract() 60 return crypto_shash_tfm_digest(hmac_tfm, ikm, ikmlen, prk); in hkdf_extract() 73 struct crypto_shash *hmac_tfm; in fscrypt_init_hkdf() local 77 hmac_tfm = crypto_alloc_shash(HKDF_HMAC_ALG, 0, 0); in fscrypt_init_hkdf() 78 if (IS_ERR(hmac_tfm)) { in fscrypt_init_hkdf() 80 PTR_ERR(hmac_tfm)); in fscrypt_init_hkdf() 81 return PTR_ERR(hmac_tfm); in fscrypt_init_hkdf() 84 if (WARN_ON_ONCE(crypto_shash_digestsize(hmac_tfm) != sizeof(prk))) { in fscrypt_init_hkdf() 89 err = hkdf_extract(hmac_tfm, master_key, master_key_size, prk); in fscrypt_init_hkdf() [all …]
|
D | fscrypt_private.h | 369 struct crypto_shash *hmac_tfm; member
|
/fs/ubifs/ |
D | auth.c | 49 return crypto_shash_tfm_digest(c->hmac_tfm, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac() 318 c->hmac_tfm = crypto_alloc_shash(hmac_name, 0, 0); in ubifs_init_authentication() 319 if (IS_ERR(c->hmac_tfm)) { in ubifs_init_authentication() 320 err = PTR_ERR(c->hmac_tfm); in ubifs_init_authentication() 325 c->hmac_desc_len = crypto_shash_digestsize(c->hmac_tfm); in ubifs_init_authentication() 333 err = crypto_shash_setkey(c->hmac_tfm, ukp->data, ukp->datalen); in ubifs_init_authentication() 349 crypto_free_shash(c->hmac_tfm); in ubifs_init_authentication() 371 crypto_free_shash(c->hmac_tfm); in __ubifs_exit_authentication() 391 SHASH_DESC_ON_STACK(shash, c->hmac_tfm); in ubifs_node_calc_hmac() 398 shash->tfm = c->hmac_tfm; in ubifs_node_calc_hmac() [all …]
|
D | replay.c | 615 err = crypto_shash_tfm_digest(c->hmac_tfm, hash, in authenticate_sleb()
|
D | ubifs.h | 1500 struct crypto_shash *hmac_tfm; member
|