bpf_crypto_encrypt(9)
π bpf_crypto_encrypt β the kernel API manual, but make it cute
ok so bestie, welcome to bpf_crypto_encrypt(9) from the Kernel API Manual β¨ this is literally the page about encrypting a buffer with a configured context and an IV that you hand over. no cap, it's a whole vibe π
πΈ NAME
bpf_crypto_encrypt β encrypt a buffer using the configured context and the IV you provide π
β¨ SYNOPSIS
__bpf_kfunc int bpf_crypto_encrypt (struct bpf_crypto_ctx *ctx , const
struct bpf_dynptr *src , const struct bpf_dynptr *dst , const struct
bpf_dynptr *siv__nullable );
like, look at her. four args, one return, __bpf_kfunc int, iconic π
π«Ά ARGUMENTS
ctxβ the crypto context you're using. must be a trusted pointer fr fr, no sketchy pointers allowed πsrcβ abpf_dynptrpointing at the plain data. also must be a trusted pointer πdstβ abpf_dynptrto the buffer where the result goes. yup, must be a trusted pointer too π¦siv__nullableβ abpf_dynptrto the IV data and state data that the decryptor is gonna use. may beNULLβ she's optional, main character energy but lowkey chill about it β
π₯ DESCRIPTION
so basically: it encrypts the buffer you gave it, using the IV data and the crypto context. the crypto context must be configured β that's not a suggestion bestie, that's the whole assignment π
β οΈ quick vibe check: ctx has to be configured before you call this. don't come crying to me if it isn't π
π¦ SEE ALSO
- Kernel file
./kernel/bpf/crypto.c struct bpf_crypto_params(9)struct bpf_crypto_ctx(9)bpf_crypto_ctx_create(9)bpf_crypto_ctx_acquire(9)bpf_crypto_ctx_release(9)bpf_crypto_decrypt(9)β the sister function, go say hi π«Ά
ok that's the whole page, you ate that π this one lives in ./kernel/bpf, version/datestamp era: October 2026, and the page is literally named bpf_crypto_encrypt(9). mwah, go encrypt something beautiful πβ¨π§
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms