Lines Matching refs:hmac_tfm
712 WARN_ON(con->v2.hmac_tfm || con->v2.gcm_tfm || con->v2.gcm_req);
727 con->v2.hmac_tfm = crypto_alloc_shash("hmac(sha256)", 0, 0);
729 if (IS_ERR(con->v2.hmac_tfm)) {
730 ret = PTR_ERR(con->v2.hmac_tfm);
731 con->v2.hmac_tfm = NULL;
737 crypto_shash_alignmask(con->v2.hmac_tfm));
738 ret = crypto_shash_setkey(con->v2.hmac_tfm, session_key,
801 SHASH_DESC_ON_STACK(desc, con->v2.hmac_tfm); /* tfm arg is ignored */
805 dout("%s con %p hmac_tfm %p kvec_cnt %d\n", __func__, con,
806 con->v2.hmac_tfm, kvec_cnt);
808 if (!con->v2.hmac_tfm) {
813 desc->tfm = con->v2.hmac_tfm;
820 crypto_shash_alignmask(con->v2.hmac_tfm));
3818 if (con->v2.hmac_tfm) {
3819 crypto_free_shash(con->v2.hmac_tfm);
3820 con->v2.hmac_tfm = NULL;