bpf_crypto_encrypt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” a bpf_dynptr pointing at the plain data. also must be a trusted pointer πŸ’œ
  • dst β€” a bpf_dynptr to the buffer where the result goes. yup, must be a trusted pointer too πŸ¦‹
  • siv__nullable β€” a bpf_dynptr to the IV data and state data that the decryptor is gonna use. may be NULL β€” 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


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