• Home
  • Raw
  • Download

Lines Matching refs:hmac

647 	struct xdr_netobj hmac;  in gss_krb5_aes_encrypt()  local
698 hmac.len = GSS_KRB5_MAX_CKSUM_LEN; in gss_krb5_aes_encrypt()
699 hmac.data = buf->tail[0].iov_base + buf->tail[0].iov_len; in gss_krb5_aes_encrypt()
713 cksumkey, usage, &hmac); in gss_krb5_aes_encrypt()
861 struct crypto_hash *hmac; in krb5_rc4_setup_seq_key() local
870 hmac = crypto_alloc_hash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in krb5_rc4_setup_seq_key()
871 if (IS_ERR(hmac)) { in krb5_rc4_setup_seq_key()
873 __func__, PTR_ERR(hmac), kctx->gk5e->cksum_name); in krb5_rc4_setup_seq_key()
874 return PTR_ERR(hmac); in krb5_rc4_setup_seq_key()
877 desc.tfm = hmac; in krb5_rc4_setup_seq_key()
885 err = crypto_hash_setkey(hmac, kctx->Ksess, kctx->gk5e->keylength); in krb5_rc4_setup_seq_key()
897 err = crypto_hash_setkey(hmac, Kseq, kctx->gk5e->keylength); in krb5_rc4_setup_seq_key()
914 crypto_free_hash(hmac); in krb5_rc4_setup_seq_key()
927 struct crypto_hash *hmac; in krb5_rc4_setup_enc_key() local
937 hmac = crypto_alloc_hash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in krb5_rc4_setup_enc_key()
938 if (IS_ERR(hmac)) { in krb5_rc4_setup_enc_key()
940 __func__, PTR_ERR(hmac), kctx->gk5e->cksum_name); in krb5_rc4_setup_enc_key()
941 return PTR_ERR(hmac); in krb5_rc4_setup_enc_key()
944 desc.tfm = hmac; in krb5_rc4_setup_enc_key()
955 err = crypto_hash_setkey(hmac, Kcrypt, kctx->gk5e->keylength); in krb5_rc4_setup_enc_key()
967 err = crypto_hash_setkey(hmac, Kcrypt, kctx->gk5e->keylength); in krb5_rc4_setup_enc_key()
989 crypto_free_hash(hmac); in krb5_rc4_setup_enc_key()