Home
last modified time | relevance | path

Searched refs:hmac_tfm (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/fs/crypto/
H A Dhkdf.c71 struct crypto_shash *hmac_tfm; in fscrypt_init_hkdf() local
75 hmac_tfm = crypto_alloc_shash(HKDF_HMAC_ALG, 0, 0); in fscrypt_init_hkdf()
76 if (IS_ERR(hmac_tfm)) { in fscrypt_init_hkdf()
78 PTR_ERR(hmac_tfm)); in fscrypt_init_hkdf()
79 return PTR_ERR(hmac_tfm); in fscrypt_init_hkdf()
91 err = crypto_shash_setkey(hmac_tfm, prk, sizeof(prk)); in fscrypt_init_hkdf()
95 hkdf->hmac_tfm = hmac_tfm; in fscrypt_init_hkdf()
99 crypto_free_shash(hmac_tfm); in fscrypt_init_hkdf()
120 SHASH_DESC_ON_STACK(desc, hkdf->hmac_tfm); in fscrypt_hkdf_expand()
131 desc->tfm = hkdf->hmac_tfm; in fscrypt_hkdf_expand()
[all …]
H A Dfscrypt_private.h306 struct crypto_shash *hmac_tfm; member
/openbmc/linux/fs/ubifs/
H A Dauth.c318 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()
511 SHASH_DESC_ON_STACK(shash, c->hmac_tfm); in ubifs_hmac_wkm()
[all …]
H A Dreplay.c615 err = crypto_shash_tfm_digest(c->hmac_tfm, hash, in authenticate_sleb()
H A Dubifs.h1500 struct crypto_shash *hmac_tfm; member
/openbmc/linux/drivers/crypto/ccp/
H A Dccp-crypto-sha.c276 struct crypto_shash *shash = ctx->u.sha.hmac_tfm; in ccp_sha_setkey()
335 struct crypto_shash *hmac_tfm; in ccp_hmac_sha_cra_init() local
337 hmac_tfm = crypto_alloc_shash(alg->child_alg, 0, 0); in ccp_hmac_sha_cra_init()
338 if (IS_ERR(hmac_tfm)) { in ccp_hmac_sha_cra_init()
341 return PTR_ERR(hmac_tfm); in ccp_hmac_sha_cra_init()
344 ctx->u.sha.hmac_tfm = hmac_tfm; in ccp_hmac_sha_cra_init()
353 if (ctx->u.sha.hmac_tfm) in ccp_hmac_sha_cra_exit()
354 crypto_free_shash(ctx->u.sha.hmac_tfm); in ccp_hmac_sha_cra_exit()
H A Dccp-crypto.h196 struct crypto_shash *hmac_tfm; member
/openbmc/linux/security/integrity/evm/
H A Devm_crypto.c29 static struct crypto_shash *hmac_tfm; variable
86 tfm = &hmac_tfm; in init_desc()
/openbmc/linux/net/ceph/
H A Dmessenger_v2.c729 if (IS_ERR(con->v2.hmac_tfm)) { in setup_crypto()
730 ret = PTR_ERR(con->v2.hmac_tfm); in setup_crypto()
731 con->v2.hmac_tfm = NULL; in setup_crypto()
737 crypto_shash_alignmask(con->v2.hmac_tfm)); in setup_crypto()
806 con->v2.hmac_tfm, kvec_cnt); in hmac_sha256()
808 if (!con->v2.hmac_tfm) { in hmac_sha256()
813 desc->tfm = con->v2.hmac_tfm; in hmac_sha256()
820 crypto_shash_alignmask(con->v2.hmac_tfm)); in hmac_sha256()
3818 if (con->v2.hmac_tfm) { in ceph_con_v2_reset_protocol()
3819 crypto_free_shash(con->v2.hmac_tfm); in ceph_con_v2_reset_protocol()
[all …]
/openbmc/linux/include/linux/ceph/
H A Dmessenger.h415 struct crypto_shash *hmac_tfm; /* post-auth signature */ member