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()
736 ret = crypto_shash_setkey(con->v2.hmac_tfm, session_key, in setup_crypto()
799 SHASH_DESC_ON_STACK(desc, con->v2.hmac_tfm); /* tfm arg is ignored */ in hmac_sha256()
804 con->v2.hmac_tfm, kvec_cnt); in hmac_sha256()
806 if (!con->v2.hmac_tfm) { in hmac_sha256()
811 desc->tfm = con->v2.hmac_tfm; in hmac_sha256()
3817 if (con->v2.hmac_tfm) { in ceph_con_v2_reset_protocol()
3818 crypto_free_shash(con->v2.hmac_tfm); in ceph_con_v2_reset_protocol()
3819 con->v2.hmac_tfm = NULL; in ceph_con_v2_reset_protocol()