Lines Matching refs:gk5e
247 *res = crypto_alloc_blkcipher(ctx->gk5e->encrypt_name, 0,
251 "crypto algorithm %s\n", ctx->gk5e->encrypt_name);
257 "crypto algorithm %s\n", ctx->gk5e->encrypt_name);
285 ctx->gk5e = get_gss_krb5_enctype(ctx->enctype);
286 if (ctx->gk5e == NULL) {
357 if (crypto_blkcipher_setkey(cp, key, ctx->gk5e->keylength)) {
387 keyin.len = ctx->gk5e->keylength;
388 keyout.len = ctx->gk5e->keylength;
391 ctx->seq = context_v2_alloc_cipher(ctx, ctx->gk5e->encrypt_name,
396 ctx->enc = context_v2_alloc_cipher(ctx, ctx->gk5e->encrypt_name,
404 err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask);
440 hmac = crypto_alloc_hash(ctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC);
443 __func__, PTR_ERR(hmac), ctx->gk5e->cksum_name);
448 err = crypto_hash_setkey(hmac, ctx->Ksess, ctx->gk5e->keylength);
468 ctx->enc = crypto_alloc_blkcipher(ctx->gk5e->encrypt_name, 0,
475 ctx->seq = crypto_alloc_blkcipher(ctx->gk5e->encrypt_name, 0,
505 keyin.len = ctx->gk5e->keylength;
506 keyout.len = ctx->gk5e->keylength;
511 err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask);
518 ctx->gk5e->encrypt_name,
526 err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask);
533 ctx->gk5e->encrypt_name,
541 err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask);
551 err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask);
561 err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask);
571 err = krb5_derive_key(ctx->gk5e, &keyin, &keyout, &c, gfp_mask);
636 ctx->gk5e = get_gss_krb5_enctype(ctx->enctype);
637 if (ctx->gk5e == NULL) {
643 keylen = ctx->gk5e->keylength;