Home
last modified time | relevance | path

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

/linux/fs/crypto/
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 …]
A Dfscrypt_private.h309 struct crypto_shash *hmac_tfm; member
/linux/fs/ubifs/
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 …]
A Dreplay.c615 err = crypto_shash_tfm_digest(c->hmac_tfm, hash, in authenticate_sleb()
A Dubifs.h1472 struct crypto_shash *hmac_tfm; member
/linux/drivers/crypto/ccp/
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()
A Dccp-crypto.h196 struct crypto_shash *hmac_tfm; member
/linux/security/integrity/evm/
A Devm.h41 extern struct crypto_shash *hmac_tfm;
A Devm_crypto.c29 struct crypto_shash *hmac_tfm; variable
86 tfm = &hmac_tfm; in init_desc()
/linux/net/ceph/
A Dmessenger_v2.c717 if (IS_ERR(con->v2.hmac_tfm)) { in setup_crypto()
718 ret = PTR_ERR(con->v2.hmac_tfm); in setup_crypto()
719 con->v2.hmac_tfm = NULL; in setup_crypto()
725 crypto_shash_alignmask(con->v2.hmac_tfm)); in setup_crypto()
794 con->v2.hmac_tfm, kvec_cnt); in hmac_sha256()
796 if (!con->v2.hmac_tfm) { in hmac_sha256()
801 desc->tfm = con->v2.hmac_tfm; in hmac_sha256()
808 crypto_shash_alignmask(con->v2.hmac_tfm)); in hmac_sha256()
3447 if (con->v2.hmac_tfm) { in ceph_con_v2_reset_protocol()
3448 crypto_free_shash(con->v2.hmac_tfm); in ceph_con_v2_reset_protocol()
[all …]
/linux/include/linux/ceph/
A Dmessenger.h379 struct crypto_shash *hmac_tfm; /* post-auth signature */ member

Completed in 33 milliseconds