Searched refs:gk5e (Results 1 – 8 of 8) sorted by relevance
/linux/net/sunrpc/auth_gss/ |
H A D | gss_krb5_test.c | 46 const struct gss_krb5_enctype *gk5e; in kdf_case() local 51 gk5e = gss_krb5_lookup_enctype(param->enctype); in kdf_case() 52 if (!gk5e) in kdf_case() 61 err = gk5e->derive_key(gk5e, param->base_key, &derivedkey, in kdf_case() 79 const struct gss_krb5_enctype *gk5e; in checksum_case() local 85 gk5e = gss_krb5_lookup_enctype(param->enctype); in checksum_case() 86 if (!gk5e) in checksum_case() 89 Kc.len = gk5e->Kc_length; in checksum_case() 92 err = gk5e->derive_key(gk5e, param->base_key, &Kc, in checksum_case() 96 tfm = crypto_alloc_ahash(gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in checksum_case() [all …]
|
H A D | gss_krb5_mech.c | 286 tfm = crypto_alloc_ahash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in gss_krb5_alloc_hash_v2() 300 .len = ctx->gk5e->keylength, in gss_krb5_import_ctx_v2() 311 keyout.len = ctx->gk5e->Ke_length; in gss_krb5_import_ctx_v2() 315 ctx->initiator_enc = gss_krb5_alloc_cipher_v2(ctx->gk5e->encrypt_name, in gss_krb5_import_ctx_v2() 319 if (ctx->gk5e->aux_cipher) { in gss_krb5_import_ctx_v2() 321 gss_krb5_alloc_cipher_v2(ctx->gk5e->aux_cipher, in gss_krb5_import_ctx_v2() 331 ctx->acceptor_enc = gss_krb5_alloc_cipher_v2(ctx->gk5e->encrypt_name, in gss_krb5_import_ctx_v2() 335 if (ctx->gk5e->aux_cipher) { in gss_krb5_import_ctx_v2() 337 gss_krb5_alloc_cipher_v2(ctx->gk5e->aux_cipher, in gss_krb5_import_ctx_v2() 344 keyout.len = ctx->gk5e->Kc_length; in gss_krb5_import_ctx_v2() [all …]
|
H A D | gss_krb5_keys.c | 150 static int krb5_DK(const struct gss_krb5_enctype *gk5e, in krb5_DK() argument 160 keybytes = gk5e->keybytes; in krb5_DK() 161 keylength = gk5e->keylength; in krb5_DK() 166 cipher = crypto_alloc_sync_skcipher(gk5e->encrypt_name, 0, 0); in krb5_DK() 228 static int krb5_random_to_key_v2(const struct gss_krb5_enctype *gk5e, in krb5_random_to_key_v2() argument 267 int krb5_derive_key_v2(const struct gss_krb5_enctype *gk5e, in krb5_derive_key_v2() argument 276 inblock.len = gk5e->keybytes; in krb5_derive_key_v2() 281 ret = krb5_DK(gk5e, inkey, inblock.data, label, gfp_mask); in krb5_derive_key_v2() 283 ret = krb5_random_to_key_v2(gk5e, &inblock, outkey); in krb5_derive_key_v2() 368 krb5_kdf_feedback_cmac(const struct gss_krb5_enctype *gk5e, in krb5_kdf_feedback_cmac() argument [all …]
|
H A D | gss_krb5_crypto.c | 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() [all …]
|
H A D | gss_krb5_internal.h | 36 int (*derive_key)(const struct gss_krb5_enctype *gk5e, 64 const struct gss_krb5_enctype *gk5e; /* enctype-specific info */ member 106 int krb5_derive_key_v2(const struct gss_krb5_enctype *gk5e, 112 int krb5_kdf_hmac_sha2(const struct gss_krb5_enctype *gk5e, 118 int krb5_kdf_feedback_cmac(const struct gss_krb5_enctype *gk5e, 143 const struct gss_krb5_enctype *gk5e = kctx->gk5e; in krb5_derive_key() local 153 return gk5e->derive_key(gk5e, inkey, outkey, &label, gfp_mask); in krb5_derive_key()
|
H A D | gss_krb5_unseal.c | 78 .len = ctx->gk5e->cksumlength, in gss_krb5_verify_mic_v2() 112 ctx->gk5e->cksumlength)) in gss_krb5_verify_mic_v2()
|
H A D | gss_krb5_seal.c | 100 token->len = GSS_KRB5_TOK_HDR_LEN + ctx->gk5e->cksumlength; in setup_token_v2() 111 .len = ctx->gk5e->cksumlength, in gss_krb5_get_mic_v2()
|
H A D | gss_krb5_wrap.c | 133 err = (*kctx->gk5e->encrypt)(kctx, offset, buf, pages); in gss_krb5_wrap_v2() 187 err = (*kctx->gk5e->decrypt)(kctx, offset, len, buf, in gss_krb5_unwrap_v2()
|