gk5e 80 include/linux/sunrpc/gss_krb5.h u32 (*mk_key) (const struct gss_krb5_enctype *gk5e, gk5e 100 include/linux/sunrpc/gss_krb5.h const struct gss_krb5_enctype *gk5e; /* enctype-specific info */ gk5e 293 include/linux/sunrpc/gss_krb5.h krb5_derive_key(const struct gss_krb5_enctype *gk5e, gk5e 300 include/linux/sunrpc/gss_krb5.h gss_krb5_des3_make_key(const struct gss_krb5_enctype *gk5e, gk5e 305 include/linux/sunrpc/gss_krb5.h gss_krb5_aes_make_key(const struct gss_krb5_enctype *gk5e, gk5e 180 net/sunrpc/auth_gss/gss_krb5_crypto.c if (cksumout->len < kctx->gk5e->cksumlength) { gk5e 182 net/sunrpc/auth_gss/gss_krb5_crypto.c __func__, cksumout->len, kctx->gk5e->name); gk5e 203 net/sunrpc/auth_gss/gss_krb5_crypto.c hmac_md5 = crypto_alloc_ahash(kctx->gk5e->cksum_name, 0, gk5e 244 net/sunrpc/auth_gss/gss_krb5_crypto.c err = crypto_ahash_setkey(hmac_md5, cksumkey, kctx->gk5e->keylength); gk5e 255 net/sunrpc/auth_gss/gss_krb5_crypto.c memcpy(cksumout->data, checksumdata, kctx->gk5e->cksumlength); gk5e 256 net/sunrpc/auth_gss/gss_krb5_crypto.c cksumout->len = kctx->gk5e->cksumlength; gk5e 287 net/sunrpc/auth_gss/gss_krb5_crypto.c if (kctx->gk5e->ctype == CKSUMTYPE_HMAC_MD5_ARCFOUR) gk5e 292 net/sunrpc/auth_gss/gss_krb5_crypto.c if (cksumout->len < kctx->gk5e->cksumlength) { gk5e 294 net/sunrpc/auth_gss/gss_krb5_crypto.c __func__, cksumout->len, kctx->gk5e->name); gk5e 302 net/sunrpc/auth_gss/gss_krb5_crypto.c tfm = crypto_alloc_ahash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); gk5e 316 net/sunrpc/auth_gss/gss_krb5_crypto.c kctx->gk5e->keylength); gk5e 338 net/sunrpc/auth_gss/gss_krb5_crypto.c switch (kctx->gk5e->ctype) { gk5e 340 net/sunrpc/auth_gss/gss_krb5_crypto.c err = kctx->gk5e->encrypt(kctx->seq, NULL, checksumdata, gk5e 345 net/sunrpc/auth_gss/gss_krb5_crypto.c checksumdata + checksumlen - kctx->gk5e->cksumlength, gk5e 346 net/sunrpc/auth_gss/gss_krb5_crypto.c kctx->gk5e->cksumlength); gk5e 349 net/sunrpc/auth_gss/gss_krb5_crypto.c memcpy(cksumout->data, checksumdata, kctx->gk5e->cksumlength); gk5e 355 net/sunrpc/auth_gss/gss_krb5_crypto.c cksumout->len = kctx->gk5e->cksumlength; gk5e 383 net/sunrpc/auth_gss/gss_krb5_crypto.c if (kctx->gk5e->keyed_cksum == 0) { gk5e 385 net/sunrpc/auth_gss/gss_krb5_crypto.c __func__, kctx->gk5e->name); gk5e 390 net/sunrpc/auth_gss/gss_krb5_crypto.c __func__, kctx->gk5e->name); gk5e 398 net/sunrpc/auth_gss/gss_krb5_crypto.c tfm = crypto_alloc_ahash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); gk5e 408 net/sunrpc/auth_gss/gss_krb5_crypto.c err = crypto_ahash_setkey(tfm, cksumkey, kctx->gk5e->keylength); gk5e 431 net/sunrpc/auth_gss/gss_krb5_crypto.c cksumout->len = kctx->gk5e->cksumlength; gk5e 433 net/sunrpc/auth_gss/gss_krb5_crypto.c switch (kctx->gk5e->ctype) { gk5e 437 net/sunrpc/auth_gss/gss_krb5_crypto.c memcpy(cksumout->data, checksumdata, kctx->gk5e->cksumlength); gk5e 763 net/sunrpc/auth_gss/gss_krb5_crypto.c if (xdr_extend_head(buf, offset, kctx->gk5e->conflen)) gk5e 765 net/sunrpc/auth_gss/gss_krb5_crypto.c gss_krb5_make_confounder(buf->head[0].iov_base + offset, kctx->gk5e->conflen); gk5e 844 net/sunrpc/auth_gss/gss_krb5_crypto.c buf->tail[0].iov_len += kctx->gk5e->cksumlength; gk5e 845 net/sunrpc/auth_gss/gss_krb5_crypto.c buf->len += kctx->gk5e->cksumlength; gk5e 885 net/sunrpc/auth_gss/gss_krb5_crypto.c kctx->gk5e->cksumlength)); gk5e 929 net/sunrpc/auth_gss/gss_krb5_crypto.c ret = read_bytes_from_xdr_buf(buf, len - kctx->gk5e->cksumlength, gk5e 930 net/sunrpc/auth_gss/gss_krb5_crypto.c pkt_hmac, kctx->gk5e->cksumlength); gk5e 934 net/sunrpc/auth_gss/gss_krb5_crypto.c if (crypto_memneq(pkt_hmac, our_hmac, kctx->gk5e->cksumlength) != 0) { gk5e 938 net/sunrpc/auth_gss/gss_krb5_crypto.c *headskip = kctx->gk5e->conflen; gk5e 939 net/sunrpc/auth_gss/gss_krb5_crypto.c *tailskip = kctx->gk5e->cksumlength; gk5e 963 net/sunrpc/auth_gss/gss_krb5_crypto.c hmac = crypto_alloc_shash(kctx->gk5e->cksum_name, 0, 0); gk5e 966 net/sunrpc/auth_gss/gss_krb5_crypto.c __func__, PTR_ERR(hmac), kctx->gk5e->cksum_name); gk5e 974 net/sunrpc/auth_gss/gss_krb5_crypto.c __func__, kctx->gk5e->cksum_name); gk5e 982 net/sunrpc/auth_gss/gss_krb5_crypto.c err = crypto_shash_setkey(hmac, kctx->Ksess, kctx->gk5e->keylength); gk5e 991 net/sunrpc/auth_gss/gss_krb5_crypto.c err = crypto_shash_setkey(hmac, Kseq, kctx->gk5e->keylength); gk5e 999 net/sunrpc/auth_gss/gss_krb5_crypto.c err = crypto_sync_skcipher_setkey(cipher, Kseq, kctx->gk5e->keylength); gk5e 1030 net/sunrpc/auth_gss/gss_krb5_crypto.c hmac = crypto_alloc_shash(kctx->gk5e->cksum_name, 0, 0); gk5e 1033 net/sunrpc/auth_gss/gss_krb5_crypto.c __func__, PTR_ERR(hmac), kctx->gk5e->cksum_name); gk5e 1041 net/sunrpc/auth_gss/gss_krb5_crypto.c __func__, kctx->gk5e->cksum_name); gk5e 1049 net/sunrpc/auth_gss/gss_krb5_crypto.c for (i = 0; i < kctx->gk5e->keylength; i++) gk5e 1052 net/sunrpc/auth_gss/gss_krb5_crypto.c err = crypto_shash_setkey(hmac, Kcrypt, kctx->gk5e->keylength); gk5e 1061 net/sunrpc/auth_gss/gss_krb5_crypto.c err = crypto_shash_setkey(hmac, Kcrypt, kctx->gk5e->keylength); gk5e 1075 net/sunrpc/auth_gss/gss_krb5_crypto.c kctx->gk5e->keylength); gk5e 141 net/sunrpc/auth_gss/gss_krb5_keys.c u32 krb5_derive_key(const struct gss_krb5_enctype *gk5e, gk5e 153 net/sunrpc/auth_gss/gss_krb5_keys.c blocksize = gk5e->blocksize; gk5e 154 net/sunrpc/auth_gss/gss_krb5_keys.c keybytes = gk5e->keybytes; gk5e 155 net/sunrpc/auth_gss/gss_krb5_keys.c keylength = gk5e->keylength; gk5e 160 net/sunrpc/auth_gss/gss_krb5_keys.c cipher = crypto_alloc_sync_skcipher(gk5e->encrypt_name, 0, 0); gk5e 200 net/sunrpc/auth_gss/gss_krb5_keys.c (*(gk5e->encrypt))(cipher, NULL, inblock.data, gk5e 218 net/sunrpc/auth_gss/gss_krb5_keys.c BUG_ON(gk5e->mk_key == NULL); gk5e 219 net/sunrpc/auth_gss/gss_krb5_keys.c ret = (*(gk5e->mk_key))(gk5e, &inblock, outkey); gk5e 222 net/sunrpc/auth_gss/gss_krb5_keys.c __func__, ret, gk5e->encrypt_name); gk5e 258 net/sunrpc/auth_gss/gss_krb5_keys.c u32 gss_krb5_des3_make_key(const struct gss_krb5_enctype *gk5e, gk5e 298 net/sunrpc/auth_gss/gss_krb5_keys.c u32 gss_krb5_aes_make_key(const struct gss_krb5_enctype *gk5e, gk5e 226 net/sunrpc/auth_gss/gss_krb5_mech.c *res = crypto_alloc_sync_skcipher(ctx->gk5e->encrypt_name, 0, 0); gk5e 229 net/sunrpc/auth_gss/gss_krb5_mech.c "crypto algorithm %s\n", ctx->gk5e->encrypt_name); gk5e 235 net/sunrpc/auth_gss/gss_krb5_mech.c "crypto algorithm %s\n", ctx->gk5e->encrypt_name); gk5e 264 net/sunrpc/auth_gss/gss_krb5_mech.c ctx->gk5e = get_gss_krb5_enctype(ctx->enctype); gk5e 265 net/sunrpc/auth_gss/gss_krb5_mech.c if (ctx->gk5e == NULL) { gk5e 337 net/sunrpc/auth_gss/gss_krb5_mech.c if (crypto_sync_skcipher_setkey(cp, key, ctx->gk5e->keylength)) { gk5e 367 net/sunrpc/auth_gss/gss_krb5_mech.c keyin.len = ctx->gk5e->keylength; gk5e 368 net/sunrpc/auth_gss/gss_krb5_mech.c keyout.len = ctx->gk5e->keylength; gk5e 371 net/sunrpc/auth_gss/gss_krb5_mech.c ctx->seq = context_v2_alloc_cipher(ctx, ctx->gk5e->encrypt_name, gk5e 376 net/sunrpc/auth_gss/gss_krb5_mech.c ctx->enc = context_v2_alloc_cipher(ctx, ctx->gk5e->encrypt_name, gk5e 384 net/sunrpc/auth_gss/gss_krb5_mech.c err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask); gk5e 419 net/sunrpc/auth_gss/gss_krb5_mech.c hmac = crypto_alloc_shash(ctx->gk5e->cksum_name, 0, 0); gk5e 422 net/sunrpc/auth_gss/gss_krb5_mech.c __func__, PTR_ERR(hmac), ctx->gk5e->cksum_name); gk5e 427 net/sunrpc/auth_gss/gss_krb5_mech.c err = crypto_shash_setkey(hmac, ctx->Ksess, ctx->gk5e->keylength); gk5e 435 net/sunrpc/auth_gss/gss_krb5_mech.c __func__, ctx->gk5e->cksum_name); gk5e 449 net/sunrpc/auth_gss/gss_krb5_mech.c ctx->enc = crypto_alloc_sync_skcipher(ctx->gk5e->encrypt_name, 0, 0); gk5e 455 net/sunrpc/auth_gss/gss_krb5_mech.c ctx->seq = crypto_alloc_sync_skcipher(ctx->gk5e->encrypt_name, 0, 0); gk5e 484 net/sunrpc/auth_gss/gss_krb5_mech.c keyin.len = ctx->gk5e->keylength; gk5e 485 net/sunrpc/auth_gss/gss_krb5_mech.c keyout.len = ctx->gk5e->keylength; gk5e 490 net/sunrpc/auth_gss/gss_krb5_mech.c err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask); gk5e 497 net/sunrpc/auth_gss/gss_krb5_mech.c ctx->gk5e->encrypt_name, gk5e 505 net/sunrpc/auth_gss/gss_krb5_mech.c err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask); gk5e 512 net/sunrpc/auth_gss/gss_krb5_mech.c ctx->gk5e->encrypt_name, gk5e 520 net/sunrpc/auth_gss/gss_krb5_mech.c err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask); gk5e 530 net/sunrpc/auth_gss/gss_krb5_mech.c err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask); gk5e 540 net/sunrpc/auth_gss/gss_krb5_mech.c err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask); gk5e 550 net/sunrpc/auth_gss/gss_krb5_mech.c err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask); gk5e 617 net/sunrpc/auth_gss/gss_krb5_mech.c ctx->gk5e = get_gss_krb5_enctype(ctx->enctype); gk5e 618 net/sunrpc/auth_gss/gss_krb5_mech.c if (ctx->gk5e == NULL) { gk5e 624 net/sunrpc/auth_gss/gss_krb5_mech.c keylen = ctx->gk5e->keylength; gk5e 77 net/sunrpc/auth_gss/gss_krb5_seal.c int body_size = GSS_KRB5_TOK_HDR_LEN + ctx->gk5e->cksumlength; gk5e 91 net/sunrpc/auth_gss/gss_krb5_seal.c *ptr++ = (__force u16)cpu_to_le16(ctx->gk5e->signalg); gk5e 122 net/sunrpc/auth_gss/gss_krb5_seal.c token->len = GSS_KRB5_TOK_HDR_LEN + ctx->gk5e->cksumlength; gk5e 145 net/sunrpc/auth_gss/gss_krb5_seal.c if (ctx->gk5e->keyed_cksum) gk5e 51 net/sunrpc/auth_gss/gss_krb5_seqnum.c cipher = crypto_alloc_sync_skcipher(kctx->gk5e->encrypt_name, 0, 0); gk5e 120 net/sunrpc/auth_gss/gss_krb5_seqnum.c cipher = crypto_alloc_sync_skcipher(kctx->gk5e->encrypt_name, 0, 0); gk5e 102 net/sunrpc/auth_gss/gss_krb5_unseal.c if (signalg != ctx->gk5e->signalg) gk5e 112 net/sunrpc/auth_gss/gss_krb5_unseal.c if (ctx->gk5e->keyed_cksum) gk5e 122 net/sunrpc/auth_gss/gss_krb5_unseal.c ctx->gk5e->cksumlength)) gk5e 193 net/sunrpc/auth_gss/gss_krb5_unseal.c ctx->gk5e->cksumlength)) gk5e 171 net/sunrpc/auth_gss/gss_krb5_wrap.c u32 conflen = kctx->gk5e->conflen; gk5e 183 net/sunrpc/auth_gss/gss_krb5_wrap.c GSS_KRB5_TOK_HDR_LEN + kctx->gk5e->cksumlength + plainlen) - gk5e 195 net/sunrpc/auth_gss/gss_krb5_wrap.c kctx->gk5e->cksumlength + plainlen, &ptr); gk5e 202 net/sunrpc/auth_gss/gss_krb5_wrap.c msg_start = ptr + GSS_KRB5_TOK_HDR_LEN + kctx->gk5e->cksumlength; gk5e 209 net/sunrpc/auth_gss/gss_krb5_wrap.c *(__le16 *)(ptr + 2) = cpu_to_le16(kctx->gk5e->signalg); gk5e 210 net/sunrpc/auth_gss/gss_krb5_wrap.c *(__le16 *)(ptr + 4) = cpu_to_le16(kctx->gk5e->sealalg); gk5e 216 net/sunrpc/auth_gss/gss_krb5_wrap.c if (kctx->gk5e->keyed_cksum) gk5e 242 net/sunrpc/auth_gss/gss_krb5_wrap.c cipher = crypto_alloc_sync_skcipher(kctx->gk5e->encrypt_name, gk5e 281 net/sunrpc/auth_gss/gss_krb5_wrap.c u32 conflen = kctx->gk5e->conflen; gk5e 302 net/sunrpc/auth_gss/gss_krb5_wrap.c if (signalg != kctx->gk5e->signalg) gk5e 306 net/sunrpc/auth_gss/gss_krb5_wrap.c if (sealalg != kctx->gk5e->sealalg) gk5e 316 net/sunrpc/auth_gss/gss_krb5_wrap.c crypt_offset = ptr + (GSS_KRB5_TOK_HDR_LEN + kctx->gk5e->cksumlength) - gk5e 335 net/sunrpc/auth_gss/gss_krb5_wrap.c cipher = crypto_alloc_sync_skcipher(kctx->gk5e->encrypt_name, gk5e 351 net/sunrpc/auth_gss/gss_krb5_wrap.c if (kctx->gk5e->keyed_cksum) gk5e 361 net/sunrpc/auth_gss/gss_krb5_wrap.c kctx->gk5e->cksumlength)) gk5e 377 net/sunrpc/auth_gss/gss_krb5_wrap.c data_start = ptr + (GSS_KRB5_TOK_HDR_LEN + kctx->gk5e->cksumlength) + gk5e 458 net/sunrpc/auth_gss/gss_krb5_wrap.c if (kctx->gk5e->encrypt_v2 == NULL) gk5e 488 net/sunrpc/auth_gss/gss_krb5_wrap.c err = (*kctx->gk5e->encrypt_v2)(kctx, offset, buf, pages); gk5e 513 net/sunrpc/auth_gss/gss_krb5_wrap.c if (kctx->gk5e->decrypt_v2 == NULL) gk5e 545 net/sunrpc/auth_gss/gss_krb5_wrap.c err = (*kctx->gk5e->decrypt_v2)(kctx, offset, len, buf,