Lines Matching refs:hmac

647 	struct xdr_netobj hmac;  in gss_krb5_aes_encrypt()  local
693 hmac.len = GSS_KRB5_MAX_CKSUM_LEN; in gss_krb5_aes_encrypt()
694 hmac.data = buf->tail[0].iov_base + buf->tail[0].iov_len; in gss_krb5_aes_encrypt()
708 cksumkey, usage, &hmac); in gss_krb5_aes_encrypt()
856 struct crypto_hash *hmac; in krb5_rc4_setup_seq_key() local
865 hmac = crypto_alloc_hash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in krb5_rc4_setup_seq_key()
866 if (IS_ERR(hmac)) { in krb5_rc4_setup_seq_key()
868 __func__, PTR_ERR(hmac), kctx->gk5e->cksum_name); in krb5_rc4_setup_seq_key()
869 return PTR_ERR(hmac); in krb5_rc4_setup_seq_key()
872 desc.tfm = hmac; in krb5_rc4_setup_seq_key()
880 err = crypto_hash_setkey(hmac, kctx->Ksess, kctx->gk5e->keylength); in krb5_rc4_setup_seq_key()
892 err = crypto_hash_setkey(hmac, Kseq, kctx->gk5e->keylength); in krb5_rc4_setup_seq_key()
909 crypto_free_hash(hmac); in krb5_rc4_setup_seq_key()
922 struct crypto_hash *hmac; in krb5_rc4_setup_enc_key() local
932 hmac = crypto_alloc_hash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in krb5_rc4_setup_enc_key()
933 if (IS_ERR(hmac)) { in krb5_rc4_setup_enc_key()
935 __func__, PTR_ERR(hmac), kctx->gk5e->cksum_name); in krb5_rc4_setup_enc_key()
936 return PTR_ERR(hmac); in krb5_rc4_setup_enc_key()
939 desc.tfm = hmac; in krb5_rc4_setup_enc_key()
950 err = crypto_hash_setkey(hmac, Kcrypt, kctx->gk5e->keylength); in krb5_rc4_setup_enc_key()
962 err = crypto_hash_setkey(hmac, Kcrypt, kctx->gk5e->keylength); in krb5_rc4_setup_enc_key()
984 crypto_free_hash(hmac); in krb5_rc4_setup_enc_key()