Home
last modified time | relevance | path

Searched refs:krb5 (Results 1 – 11 of 11) sorted by relevance

/linux/net/rxrpc/
H A Drxgk_kdf.c62 const struct krb5_enctype *krb5 = gk->krb5; in rxgk_derive_transport_key() local
64 unsigned int L = krb5->key_bytes; in rxgk_derive_transport_key()
86 ret = crypto_krb5_calc_PRFplus(krb5, &rxgk->key, L, &conn_info, TK, gfp); in rxgk_derive_transport_key()
100 const struct krb5_enctype *krb5 = gk->krb5; in rxgk_set_up_ciphers() local
108 buffer = kzalloc(krb5->key_bytes, gfp); in rxgk_set_up_ciphers()
112 TK.len = krb5->key_bytes; in rxgk_set_up_ciphers()
119 aead = crypto_krb5_prepare_encryption(krb5, &TK, RXGK_CLIENT_ENC_RESPONSE, gfp); in rxgk_set_up_ciphers()
124 if (crypto_aead_blocksize(gk->resp_enc) != krb5->block_len || in rxgk_set_up_ciphers()
125 crypto_aead_authsize(gk->resp_enc) != krb5->cksum_len) { in rxgk_set_up_ciphers()
127 crypto_aead_blocksize(gk->resp_enc), krb5->block_len, in rxgk_set_up_ciphers()
[all …]
H A Drxgk_common.h22 const struct krb5_enctype *krb5; /* RxGK encryption type */ member
69 static inline int rxgk_decrypt(const struct krb5_enctype *krb5, in rxgk_decrypt() argument
80 ret = crypto_krb5_decrypt(krb5, aead, sg, 1, &offset, &len); in rxgk_decrypt()
112 int rxgk_verify_mic(const struct krb5_enctype *krb5, in rxgk_verify_mic() argument
124 ret = crypto_krb5_verify_mic(krb5, shash, metadata, sg, 1, &offset, &len); in rxgk_verify_mic()
H A Drxgk.c22 const struct krb5_enctype *krb5; in rxgk_preparse_server_key() local
36 krb5 = crypto_krb5_find_enctype(enctype); in rxgk_preparse_server_key()
37 if (!krb5) in rxgk_preparse_server_key()
40 prep->payload.data[0] = (struct krb5_enctype *)krb5; in rxgk_preparse_server_key()
42 if (prep->datalen != krb5->key_len) in rxgk_preparse_server_key()
73 const struct krb5_enctype *krb5 = key->payload.data[0]; in rxgk_describe_server_key() local
75 if (krb5) in rxgk_describe_server_key()
76 seq_printf(m, ": %s", krb5->name); in rxgk_describe_server_key()
254 conn->rxgk.enctype = gk->krb5->etype; in rxgk_init_connection_security()
310 limit = crypto_krb5_how_much_data(gk->krb5, mod in rxgk_alloc_txbuf()
1088 rxgk_verify_authenticator(struct rxrpc_connection * conn,const struct krb5_enctype * krb5,struct sk_buff * skb,void * auth,unsigned int auth_len) rxgk_verify_authenticator() argument
1168 const struct krb5_enctype *krb5; rxgk_verify_response() local
[all...]
H A Drxgk_app.c180 const struct krb5_enctype *krb5; in rxgk_extract_token() local
222 ret = rxgk_set_up_token_cipher(server_secret, &token_enc, enctype, &krb5, GFP_NOFS); in rxgk_extract_token()
233 ret = rxgk_decrypt(krb5, token_enc, &ticket, &ticket_len, &ec); in rxgk_extract_token()
H A Drxperf.c588 const struct krb5_enctype *krb5 = crypto_krb5_find_enctype(enctype); in rxperf_add_yfs_rxgk_key() local
594 if (!krb5 || krb5->key_len > sizeof(key)) in rxperf_add_yfs_rxgk_key()
598 for (int i = 0; i < krb5->key_len; i++) in rxperf_add_yfs_rxgk_key()
605 key, krb5->key_len, in rxperf_add_yfs_rxgk_key()
/linux/include/crypto/
H A Dkrb5.h109 int (*random_to_key)(const struct krb5_enctype *krb5,
118 size_t crypto_krb5_how_much_buffer(const struct krb5_enctype *krb5,
121 size_t crypto_krb5_how_much_data(const struct krb5_enctype *krb5,
124 int crypto_krb5_where_is_the_data(const struct krb5_enctype *krb5,
127 int crypto_krb5_check_data_len(const struct krb5_enctype *krb5,
130 struct crypto_aead *crypto_krb5_prepare_encryption(const struct krb5_enctype *krb5,
133 struct crypto_shash *crypto_krb5_prepare_checksum(const struct krb5_enctype *krb5,
136 ssize_t crypto_krb5_encrypt(const struct krb5_enctype *krb5,
142 int crypto_krb5_decrypt(const struct krb5_enctype *krb5,
146 ssize_t crypto_krb5_get_mic(const struct krb5_enctype *krb5,
[all …]
/linux/fs/afs/
H A Dcm_security.c123 const struct krb5_enctype *krb5; in afs_create_token_key() local
143 krb5 = crypto_krb5_find_enctype(KRB5_ENCTYPE_AES128_CTS_HMAC_SHA1_96); in afs_create_token_key()
144 if (!krb5) in afs_create_token_key()
147 if (WARN_ON_ONCE(krb5->key_len > sizeof(K0))) in afs_create_token_key()
152 YFS_CM_SERVICE, RXRPC_SECURITY_YFS_RXGK, 1, krb5->etype); in afs_create_token_key()
157 get_random_bytes(K0, krb5->key_len); in afs_create_token_key()
161 K0, krb5->key_len, in afs_create_token_key()
/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_unseal.c76 const struct krb5_enctype *krb5 = ctx->krb5e; in gss_krb5_verify_mic_v2() local
79 unsigned int cksum_len = krb5->cksum_len; in gss_krb5_verify_mic_v2()
122 ret = crypto_krb5_verify_mic(krb5, shash, NULL, sg_head, nsg, in gss_krb5_verify_mic_v2()
/linux/Documentation/crypto/
H A Dkrb5.rst46 #include <crypto/krb5.h>
118 int crypto_krb5_calc_PRFplus(const struct krb5_enctype *krb5,
141 size_t crypto_krb5_how_much_buffer(const struct krb5_enctype *krb5,
145 size_t crypto_krb5_how_much_data(const struct krb5_enctype *krb5,
161 int crypto_krb5_where_is_the_data(const struct krb5_enctype *krb5,
171 int crypto_krb5_check_data_len(const struct krb5_enctype *krb5,
185 crypto_krb5_prepare_encryption(const struct krb5_enctype *krb5,
189 crypto_krb5_prepare_checksum(const struct krb5_enctype *krb5,
204 ssize_t crypto_krb5_encrypt(const struct krb5_enctype *krb5,
210 int crypto_krb5_decrypt(const struct krb5_enctype *krb5,
[all …]
/linux/Documentation/admin-guide/cifs/
H A Dusage.rst672 krb5
742 may use Kerberos security (krb5) 0x00008
/linux/crypto/
H A DKconfig1377 source "crypto/krb5/Kconfig"