Lines Matching refs:gk5e

222 	if (cksumout->len < kctx->gk5e->cksumlength) {  in make_checksum()
224 __func__, cksumout->len, kctx->gk5e->name); in make_checksum()
232 tfm = crypto_alloc_ahash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in make_checksum()
246 kctx->gk5e->keylength); in make_checksum()
268 switch (kctx->gk5e->ctype) { in make_checksum()
275 checksumdata + checksumlen - kctx->gk5e->cksumlength, in make_checksum()
276 kctx->gk5e->cksumlength); in make_checksum()
279 memcpy(cksumout->data, checksumdata, kctx->gk5e->cksumlength); in make_checksum()
285 cksumout->len = kctx->gk5e->cksumlength; in make_checksum()
824 hmac.len = kctx->gk5e->cksumlength; in gss_krb5_aes_encrypt()
850 buf->tail[0].iov_len += kctx->gk5e->cksumlength; in gss_krb5_aes_encrypt()
851 buf->len += kctx->gk5e->cksumlength; in gss_krb5_aes_encrypt()
881 kctx->gk5e->cksumlength)); in gss_krb5_aes_decrypt()
887 our_hmac_obj.len = kctx->gk5e->cksumlength; in gss_krb5_aes_decrypt()
894 ret = read_bytes_from_xdr_buf(buf, len - kctx->gk5e->cksumlength, in gss_krb5_aes_decrypt()
895 pkt_hmac, kctx->gk5e->cksumlength); in gss_krb5_aes_decrypt()
899 if (crypto_memneq(pkt_hmac, our_hmac, kctx->gk5e->cksumlength) != 0) { in gss_krb5_aes_decrypt()
904 *tailskip = kctx->gk5e->cksumlength; in gss_krb5_aes_decrypt()
1059 hmac.len = kctx->gk5e->cksumlength; in krb5_etm_encrypt()
1064 buf->tail[0].iov_len += kctx->gk5e->cksumlength; in krb5_etm_encrypt()
1065 buf->len += kctx->gk5e->cksumlength; in krb5_etm_encrypt()
1124 kctx->gk5e->cksumlength)); in krb5_etm_decrypt()
1127 our_hmac_obj.len = kctx->gk5e->cksumlength; in krb5_etm_decrypt()
1131 ret = read_bytes_from_xdr_buf(buf, len - kctx->gk5e->cksumlength, in krb5_etm_decrypt()
1132 pkt_hmac, kctx->gk5e->cksumlength); in krb5_etm_decrypt()
1135 if (crypto_memneq(pkt_hmac, our_hmac, kctx->gk5e->cksumlength) != 0) { in krb5_etm_decrypt()
1147 *tailskip = kctx->gk5e->cksumlength; in krb5_etm_decrypt()