Home
last modified time | relevance | path

Searched refs:kctx (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/net/sunrpc/auth_gss/
Dgss_krb5_wrap.c158 gss_wrap_kerberos_v1(struct krb5_ctx *kctx, int offset, in gss_wrap_kerberos_v1() argument
171 u32 conflen = kctx->gk5e->conflen; in gss_wrap_kerberos_v1()
177 blocksize = crypto_sync_skcipher_blocksize(kctx->enc); in gss_wrap_kerberos_v1()
182 headlen = g_token_size(&kctx->mech_used, in gss_wrap_kerberos_v1()
183 GSS_KRB5_TOK_HDR_LEN + kctx->gk5e->cksumlength + plainlen) - in gss_wrap_kerberos_v1()
193 g_make_token_header(&kctx->mech_used, in gss_wrap_kerberos_v1()
195 kctx->gk5e->cksumlength + plainlen, &ptr); in gss_wrap_kerberos_v1()
202 msg_start = ptr + GSS_KRB5_TOK_HDR_LEN + kctx->gk5e->cksumlength; in gss_wrap_kerberos_v1()
209 *(__le16 *)(ptr + 2) = cpu_to_le16(kctx->gk5e->signalg); in gss_wrap_kerberos_v1()
210 *(__le16 *)(ptr + 4) = cpu_to_le16(kctx->gk5e->sealalg); in gss_wrap_kerberos_v1()
[all …]
Dgss_krb5_crypto.c147 make_checksum(struct krb5_ctx *kctx, char *header, int hdrlen, in make_checksum() argument
158 if (cksumout->len < kctx->gk5e->cksumlength) { in make_checksum()
160 __func__, cksumout->len, kctx->gk5e->name); in make_checksum()
168 tfm = crypto_alloc_ahash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in make_checksum()
182 kctx->gk5e->keylength); in make_checksum()
204 switch (kctx->gk5e->ctype) { in make_checksum()
206 err = kctx->gk5e->encrypt(kctx->seq, NULL, checksumdata, in make_checksum()
211 checksumdata + checksumlen - kctx->gk5e->cksumlength, in make_checksum()
212 kctx->gk5e->cksumlength); in make_checksum()
215 memcpy(cksumout->data, checksumdata, kctx->gk5e->cksumlength); in make_checksum()
[all …]
Dgss_krb5_seqnum.c43 krb5_make_seq_num(struct krb5_ctx *kctx, in krb5_make_seq_num() argument
72 krb5_get_seq_num(struct krb5_ctx *kctx, in krb5_get_seq_num() argument
79 struct crypto_sync_skcipher *key = kctx->seq; in krb5_get_seq_num()
Dgss_krb5_mech.c575 struct krb5_ctx *kctx = internal_ctx; in gss_delete_sec_context_kerberos() local
577 crypto_free_sync_skcipher(kctx->seq); in gss_delete_sec_context_kerberos()
578 crypto_free_sync_skcipher(kctx->enc); in gss_delete_sec_context_kerberos()
579 crypto_free_sync_skcipher(kctx->acceptor_enc); in gss_delete_sec_context_kerberos()
580 crypto_free_sync_skcipher(kctx->initiator_enc); in gss_delete_sec_context_kerberos()
581 crypto_free_sync_skcipher(kctx->acceptor_enc_aux); in gss_delete_sec_context_kerberos()
582 crypto_free_sync_skcipher(kctx->initiator_enc_aux); in gss_delete_sec_context_kerberos()
583 kfree(kctx->mech_used.data); in gss_delete_sec_context_kerberos()
584 kfree(kctx); in gss_delete_sec_context_kerberos()
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_hw.c238 static void chtls_rxkey_ivauth(struct _key_ctx *kctx) in chtls_rxkey_ivauth() argument
240 kctx->iv_to_auth = cpu_to_be64(KEYCTX_TX_WR_IV_V(6ULL) | in chtls_rxkey_ivauth()
251 struct _key_ctx *kctx, in chtls_key_info() argument
317 kctx->ctx_hdr = FILL_KEY_CRX_HDR(ck_size, in chtls_key_info()
320 chtls_rxkey_ivauth(kctx); in chtls_key_info()
322 kctx->ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in chtls_key_info()
327 memcpy(kctx->salt, salt, salt_size); in chtls_key_info()
328 memcpy(kctx->key, key_p, keylen); in chtls_key_info()
329 memcpy(kctx->key + keylen, ghash_h, AEAD_H_SIZE); in chtls_key_info()
362 struct _key_ctx *kctx; in chtls_setkey() local
[all …]
/linux-6.1.9/include/linux/sunrpc/
Dgss_krb5.h83 u32 (*encrypt_v2) (struct krb5_ctx *kctx, u32 offset,
86 u32 (*decrypt_v2) (struct krb5_ctx *kctx, u32 offset, u32 len,
236 make_checksum(struct krb5_ctx *kctx, char *header, int hdrlen,
277 krb5_make_seq_num(struct krb5_ctx *kctx,
283 krb5_get_seq_num(struct krb5_ctx *kctx,
308 gss_krb5_aes_encrypt(struct krb5_ctx *kctx, u32 offset,
313 gss_krb5_aes_decrypt(struct krb5_ctx *kctx, u32 offset, u32 len,
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c77 struct ktls_key_ctx *kctx = &tx_info->key_ctx; in chcr_ktls_save_keys() local
150 kctx->ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in chcr_ktls_save_keys()
158 memcpy(kctx->salt, salt, tx_info->salt_size); in chcr_ktls_save_keys()
159 memcpy(kctx->key, key, keylen); in chcr_ktls_save_keys()
160 memcpy(kctx->key + keylen, ghash_h, ghash_size); in chcr_ktls_save_keys()