Home
last modified time | relevance | path

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

/linux-6.3-rc2/net/sunrpc/auth_gss/
A Dgss_krb5_wrap.c186 if (kctx->gk5e->keyed_cksum) in gss_krb5_wrap_v1()
187 cksumkey = kctx->cksum; in gss_krb5_wrap_v1()
205 if ((krb5_make_seq_num(kctx, kctx->seq, kctx->initiate ? 0 : 0xff, in gss_krb5_wrap_v1()
255 if (signalg != kctx->gk5e->signalg) in gss_krb5_unwrap_v1()
276 if (kctx->gk5e->keyed_cksum) in gss_krb5_unwrap_v1()
277 cksumkey = kctx->cksum; in gss_krb5_unwrap_v1()
286 kctx->gk5e->cksumlength)) in gss_krb5_unwrap_v1()
293 if (now > kctx->endtime) in gss_krb5_unwrap_v1()
420 err = (*kctx->gk5e->encrypt)(kctx, offset, buf, pages); in gss_krb5_wrap_v2()
474 err = (*kctx->gk5e->decrypt)(kctx, offset, len, buf, in gss_krb5_unwrap_v2()
[all …]
A Dgss_krb5_crypto.c246 kctx->gk5e->keylength); in make_checksum()
268 switch (kctx->gk5e->ctype) { in make_checksum()
780 if (kctx->initiate) { in gss_krb5_aes_encrypt()
781 cipher = kctx->initiator_enc; in gss_krb5_aes_encrypt()
785 cipher = kctx->acceptor_enc; in gss_krb5_aes_encrypt()
857 if (kctx->initiate) { in gss_krb5_aes_decrypt()
858 cipher = kctx->acceptor_enc; in gss_krb5_aes_decrypt()
1012 if (kctx->initiate) { in krb5_etm_encrypt()
1017 cipher = kctx->acceptor_enc; in krb5_etm_encrypt()
1101 if (kctx->initiate) { in krb5_etm_decrypt()
[all …]
A Dgss_krb5_internal.h42 u32 (*encrypt)(struct krb5_ctx *kctx, u32 offset,
44 u32 (*decrypt)(struct krb5_ctx *kctx, u32 offset, u32 len,
46 u32 (*get_mic)(struct krb5_ctx *kctx, struct xdr_buf *text,
50 u32 (*wrap)(struct krb5_ctx *kctx, int offset,
52 u32 (*unwrap)(struct krb5_ctx *kctx, int offset, int len,
98 u32 gss_krb5_wrap_v1(struct krb5_ctx *kctx, int offset,
100 u32 gss_krb5_wrap_v2(struct krb5_ctx *kctx, int offset,
154 static inline int krb5_derive_key(struct krb5_ctx *kctx, in krb5_derive_key() argument
159 const struct gss_krb5_enctype *gk5e = kctx->gk5e; in krb5_derive_key()
205 u32 gss_krb5_aes_encrypt(struct krb5_ctx *kctx, u32 offset,
[all …]
A Dgss_krb5_mech.c740 struct krb5_ctx *kctx = internal_ctx; in gss_krb5_delete_sec_context() local
742 crypto_free_sync_skcipher(kctx->seq); in gss_krb5_delete_sec_context()
743 crypto_free_sync_skcipher(kctx->enc); in gss_krb5_delete_sec_context()
748 crypto_free_ahash(kctx->acceptor_sign); in gss_krb5_delete_sec_context()
749 crypto_free_ahash(kctx->initiator_sign); in gss_krb5_delete_sec_context()
752 kfree(kctx->mech_used.data); in gss_krb5_delete_sec_context()
753 kfree(kctx); in gss_krb5_delete_sec_context()
772 return kctx->gk5e->get_mic(kctx, text, token); in gss_krb5_get_mic()
794 return kctx->gk5e->verify_mic(kctx, message_buffer, read_token); in gss_krb5_verify_mic()
814 return kctx->gk5e->wrap(kctx, offset, buf, pages); in gss_krb5_wrap()
[all …]
A Dgss_krb5_seqnum.c45 krb5_make_seq_num(struct krb5_ctx *kctx, in krb5_make_seq_num() argument
74 krb5_get_seq_num(struct krb5_ctx *kctx, in krb5_get_seq_num() argument
81 struct crypto_sync_skcipher *key = kctx->seq; in krb5_get_seq_num()
/linux-6.3-rc2/drivers/net/ethernet/chelsio/inline_crypto/chtls/
A 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.3-rc2/tools/testing/selftests/bpf/progs/
A Dtype_cast.c28 struct xdp_buff *kctx = bpf_cast_to_kern_ctx(ctx); in md_xdp() local
31 dev = kctx->rxq->dev; in md_xdp()
77 u64 *kctx = bpf_rdonly_cast(ctx, bpf_core_type_id_kernel(u64)); in kctx_u64() local
79 (void)kctx; in kctx_u64()
/linux-6.3-rc2/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
A 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()

Completed in 38 milliseconds