Home
last modified time | relevance | path

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

/linux-6.12.1/tools/perf/util/bpf_skel/
Dsample_filter.bpf.c74 static inline __u64 perf_get_sample(struct bpf_perf_event_data_kern *kctx, in perf_get_sample() argument
77 struct perf_sample_data___new *data = (void *)kctx->data; in perf_get_sample()
109 return kctx->data->ip; in perf_get_sample()
111 return kctx->data->id; in perf_get_sample()
114 return kctx->data->tid_entry.pid; in perf_get_sample()
116 return kctx->data->tid_entry.tid; in perf_get_sample()
118 return kctx->data->cpu_entry.cpu; in perf_get_sample()
120 return kctx->data->time; in perf_get_sample()
122 return kctx->data->addr; in perf_get_sample()
124 return kctx->data->period; in perf_get_sample()
[all …]
/linux-6.12.1/net/sunrpc/auth_gss/
Dgss_krb5_crypto.c211 make_checksum(struct krb5_ctx *kctx, char *header, int hdrlen, in make_checksum() argument
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()
270 err = krb5_encrypt(kctx->seq, NULL, checksumdata, 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()
[all …]
Dgss_krb5_wrap.c94 gss_krb5_wrap_v2(struct krb5_ctx *kctx, int offset, in gss_krb5_wrap_v2() argument
115 if ((kctx->flags & KRB5_CTX_FLAG_INITIATOR) == 0) in gss_krb5_wrap_v2()
117 if ((kctx->flags & KRB5_CTX_FLAG_ACCEPTOR_SUBKEY) != 0) in gss_krb5_wrap_v2()
131 *be64ptr = cpu_to_be64(atomic64_fetch_inc(&kctx->seq_send64)); in gss_krb5_wrap_v2()
133 err = (*kctx->gk5e->encrypt)(kctx, offset, buf, pages); in gss_krb5_wrap_v2()
138 return (kctx->endtime < now) ? GSS_S_CONTEXT_EXPIRED : GSS_S_COMPLETE; in gss_krb5_wrap_v2()
142 gss_krb5_unwrap_v2(struct krb5_ctx *kctx, int offset, int len, in gss_krb5_unwrap_v2() argument
164 if ((!kctx->initiate && (flags & KG2_TOKEN_FLAG_SENTBYACCEPTOR)) || in gss_krb5_unwrap_v2()
165 (kctx->initiate && !(flags & KG2_TOKEN_FLAG_SENTBYACCEPTOR))) in gss_krb5_unwrap_v2()
187 err = (*kctx->gk5e->decrypt)(kctx, offset, len, buf, in gss_krb5_unwrap_v2()
[all …]
Dgss_krb5_mech.c282 gss_krb5_alloc_hash_v2(struct krb5_ctx *kctx, const struct xdr_netobj *key) in gss_krb5_alloc_hash_v2() argument
286 tfm = crypto_alloc_ahash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in gss_krb5_alloc_hash_v2()
496 struct krb5_ctx *kctx = internal_ctx; in gss_krb5_delete_sec_context() local
498 crypto_free_sync_skcipher(kctx->seq); in gss_krb5_delete_sec_context()
499 crypto_free_sync_skcipher(kctx->enc); in gss_krb5_delete_sec_context()
500 crypto_free_sync_skcipher(kctx->acceptor_enc); in gss_krb5_delete_sec_context()
501 crypto_free_sync_skcipher(kctx->initiator_enc); in gss_krb5_delete_sec_context()
502 crypto_free_sync_skcipher(kctx->acceptor_enc_aux); in gss_krb5_delete_sec_context()
503 crypto_free_sync_skcipher(kctx->initiator_enc_aux); in gss_krb5_delete_sec_context()
504 crypto_free_ahash(kctx->acceptor_sign); in gss_krb5_delete_sec_context()
[all …]
Dgss_krb5_internal.h41 u32 (*encrypt)(struct krb5_ctx *kctx, u32 offset,
43 u32 (*decrypt)(struct krb5_ctx *kctx, u32 offset, u32 len,
45 u32 (*get_mic)(struct krb5_ctx *kctx, struct xdr_buf *text,
47 u32 (*verify_mic)(struct krb5_ctx *kctx, struct xdr_buf *message_buffer,
49 u32 (*wrap)(struct krb5_ctx *kctx, int offset,
51 u32 (*unwrap)(struct krb5_ctx *kctx, int offset, int len,
93 u32 gss_krb5_wrap_v2(struct krb5_ctx *kctx, int offset,
96 u32 gss_krb5_unwrap_v2(struct krb5_ctx *kctx, int offset, int len,
138 static inline int krb5_derive_key(struct krb5_ctx *kctx, in krb5_derive_key() argument
143 const struct gss_krb5_enctype *gk5e = kctx->gk5e; in krb5_derive_key()
[all …]
/linux-6.12.1/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.12.1/tools/testing/selftests/bpf/progs/
Dtype_cast.c26 struct xdp_buff *kctx = bpf_cast_to_kern_ctx(ctx); in md_xdp() local
29 dev = kctx->rxq->dev; in md_xdp()
73 u64 *kctx = bpf_core_cast(ctx, u64); in kctx_u64() local
75 (void)kctx; in kctx_u64()
/linux-6.12.1/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c78 struct ktls_key_ctx *kctx = &tx_info->key_ctx; in chcr_ktls_save_keys() local
151 kctx->ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in chcr_ktls_save_keys()
159 memcpy(kctx->salt, salt, tx_info->salt_size); in chcr_ktls_save_keys()
160 memcpy(kctx->key, key, keylen); in chcr_ktls_save_keys()
161 memcpy(kctx->key + keylen, ghash_h, ghash_size); in chcr_ktls_save_keys()