Home
last modified time | relevance | path

Searched refs:bpf_crypto_ctx (Results 1 – 5 of 5) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dcrypto_common.h10 struct bpf_crypto_ctx *bpf_crypto_ctx_create(const struct bpf_crypto_params *params,
12 struct bpf_crypto_ctx *bpf_crypto_ctx_acquire(struct bpf_crypto_ctx *ctx) __ksym;
13 void bpf_crypto_ctx_release(struct bpf_crypto_ctx *ctx) __ksym;
14 int bpf_crypto_encrypt(struct bpf_crypto_ctx *ctx, const struct bpf_dynptr *src,
16 int bpf_crypto_decrypt(struct bpf_crypto_ctx *ctx, const struct bpf_dynptr *src,
20 struct bpf_crypto_ctx __kptr * ctx;
37 static inline int crypto_ctx_insert(struct bpf_crypto_ctx *ctx) in crypto_ctx_insert()
40 struct bpf_crypto_ctx *old; in crypto_ctx_insert()
H A Dcrypto_bench.c33 struct bpf_crypto_ctx *cctx; in crypto_setup()
66 struct bpf_crypto_ctx *ctx; in crypto_encrypt()
95 struct bpf_crypto_ctx *ctx; in crypto_decrypt()
H A Dcrypto_basic.c21 struct bpf_crypto_ctx *cctx; in crypto_release()
47 struct bpf_crypto_ctx *cctx; in crypto_acquire()
H A Dcrypto_sanity.c65 struct bpf_crypto_ctx *cctx; in skb_crypto_setup()
96 struct bpf_crypto_ctx *ctx; in decrypt_sanity()
143 struct bpf_crypto_ctx *ctx; in encrypt_sanity()
/linux/kernel/bpf/
H A Dcrypto.c52 struct bpf_crypto_ctx { struct
145 __bpf_kfunc struct bpf_crypto_ctx *
150 struct bpf_crypto_ctx *ctx; in bpf_crypto_ctx_create()
225 struct bpf_crypto_ctx *ctx; in crypto_free_cb()
227 ctx = container_of(head, struct bpf_crypto_ctx, rcu); in crypto_free_cb()
242 __bpf_kfunc struct bpf_crypto_ctx *
243 bpf_crypto_ctx_acquire(struct bpf_crypto_ctx *ctx) in bpf_crypto_ctx_acquire()
258 __bpf_kfunc void bpf_crypto_ctx_release(struct bpf_crypto_ctx *ctx) in bpf_crypto_ctx_release()
270 static int bpf_crypto_crypt(const struct bpf_crypto_ctx *ctx, in bpf_crypto_crypt()
319 __bpf_kfunc int bpf_crypto_decrypt(struct bpf_crypto_ctx *ctx, in bpf_crypto_decrypt()
[all …]