Lines Matching refs:gk5e
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()
105 checksum.len = gk5e->cksumlength; in checksum_case()
531 const struct gss_krb5_enctype *gk5e; in rfc3962_encrypt_case() local
537 gk5e = gss_krb5_lookup_enctype(param->enctype); in rfc3962_encrypt_case()
538 if (!gk5e) in rfc3962_encrypt_case()
541 cbc_tfm = crypto_alloc_sync_skcipher(gk5e->aux_cipher, 0, 0); in rfc3962_encrypt_case()
546 cts_tfm = crypto_alloc_sync_skcipher(gk5e->encrypt_name, 0, 0); in rfc3962_encrypt_case()
1118 const struct gss_krb5_enctype *gk5e; in rfc6803_encrypt_case() local
1133 gk5e = gss_krb5_lookup_enctype(param->enctype); in rfc6803_encrypt_case()
1134 if (!gk5e) in rfc6803_encrypt_case()
1140 Ke.len = gk5e->Ke_length; in rfc6803_encrypt_case()
1144 err = gk5e->derive_key(gk5e, param->base_key, &Ke, &usage, GFP_KERNEL); in rfc6803_encrypt_case()
1147 cbc_tfm = crypto_alloc_sync_skcipher(gk5e->aux_cipher, 0, 0); in rfc6803_encrypt_case()
1152 cts_tfm = crypto_alloc_sync_skcipher(gk5e->encrypt_name, 0, 0); in rfc6803_encrypt_case()
1170 checksum.len = gk5e->cksumlength; in rfc6803_encrypt_case()
1174 Ki.len = gk5e->Ki_length; in rfc6803_encrypt_case()
1178 err = gk5e->derive_key(gk5e, param->base_key, &Ki, in rfc6803_encrypt_case()
1181 ahash_tfm = crypto_alloc_ahash(gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in rfc6803_encrypt_case()
1613 const struct gss_krb5_enctype *gk5e; in rfc8009_encrypt_case() local
1627 gk5e = gss_krb5_lookup_enctype(param->enctype); in rfc8009_encrypt_case()
1628 if (!gk5e) in rfc8009_encrypt_case()
1633 Ke.len = gk5e->Ke_length; in rfc8009_encrypt_case()
1637 err = gk5e->derive_key(gk5e, param->base_key, &Ke, in rfc8009_encrypt_case()
1641 cbc_tfm = crypto_alloc_sync_skcipher(gk5e->aux_cipher, 0, 0); in rfc8009_encrypt_case()
1646 cts_tfm = crypto_alloc_sync_skcipher(gk5e->encrypt_name, 0, 0); in rfc8009_encrypt_case()
1663 checksum.len = gk5e->cksumlength; in rfc8009_encrypt_case()
1667 Ki.len = gk5e->Ki_length; in rfc8009_encrypt_case()
1671 err = gk5e->derive_key(gk5e, param->base_key, &Ki, in rfc8009_encrypt_case()
1675 ahash_tfm = crypto_alloc_ahash(gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in rfc8009_encrypt_case()
1788 const struct gss_krb5_enctype *gk5e; in encrypt_selftest_case() local
1794 gk5e = gss_krb5_lookup_enctype(param->enctype); in encrypt_selftest_case()
1795 if (!gk5e) in encrypt_selftest_case()
1798 cbc_tfm = crypto_alloc_sync_skcipher(gk5e->aux_cipher, 0, 0); in encrypt_selftest_case()
1803 cts_tfm = crypto_alloc_sync_skcipher(gk5e->encrypt_name, 0, 0); in encrypt_selftest_case()