Lines Matching refs:hmac_tfm
712 WARN_ON(con->v2.hmac_tfm || con->v2.gcm_tfm || con->v2.gcm_req); in setup_crypto()
727 con->v2.hmac_tfm = crypto_alloc_shash("hmac(sha256)", 0, 0); in setup_crypto()
729 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()
738 ret = crypto_shash_setkey(con->v2.hmac_tfm, session_key, in setup_crypto()
801 SHASH_DESC_ON_STACK(desc, con->v2.hmac_tfm); /* tfm arg is ignored */ in hmac_sha256()
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()
3820 con->v2.hmac_tfm = NULL; in ceph_con_v2_reset_protocol()