Lines Matching full:crypto
11 #include <crypto/skcipher.h>
18 /* BPF crypto initialization parameters struct */
20 * struct bpf_crypto_params - BPF crypto initialization parameters structure
21 * @type: The string of crypto operation type.
26 * @key: The cipher key used to init crypto algorithm.
43 * struct bpf_crypto_ctx - refcounted BPF crypto context structure
44 * @type: The pointer to bpf crypto type
45 * @tfm: The pointer to instance of crypto API struct.
47 * @rcu: The RCU head used to free the crypto context with RCU safety.
130 * bpf_crypto_ctx_create() - Create a mutable BPF crypto context.
132 * Allocates a crypto context that can be used, acquired, and released by
133 * a BPF program. The crypto context returned by this function must either
135 * As crypto API functions use GFP_KERNEL allocations, this function can
138 * bpf_crypto_ctx_create() allocates memory for crypto context.
141 * details needed to initialise crypto context.
234 * bpf_crypto_ctx_acquire() - Acquire a reference to a BPF crypto context.
235 * @ctx: The BPF crypto context being acquired. The ctx must be a trusted
238 * Acquires a reference to a BPF crypto context. The context returned by this function
251 * bpf_crypto_ctx_release() - Release a previously acquired BPF crypto context.
252 * @ctx: The crypto context being released.
254 * Releases a previously acquired reference to a BPF crypto context. When the final
255 * reference of the BPF crypto context has been released, its memory
306 * @ctx: The crypto context being used. The ctx must be a trusted pointer.
311 * Decrypts provided buffer using IV data and the crypto context. Crypto context must be configured.
327 * @ctx: The crypto context being used. The ctx must be a trusted pointer.
332 * Encrypts provided buffer using IV data and the crypto context. Crypto context must be configured.