crypto_spawn_kpp_alg(9)
π crypto_spawn_kpp_alg β bestie edition
okay so this is a page from the Kernel API Manual, and honestly? it's a little one but it matters, so let's get into it π«Ά
β¨ NAME β¨
crypto_spawn_kpp_alg β get the algorithm a KPP spawn has been bound to. that's the whole vibe. you hand it a spawn, it hands you back the alg. slay π
πΈ SYNOPSIS πΈ
struct kpp_alg * crypto_spawn_kpp_alg (struct crypto_kpp_spawn *spawn );
literally one argument, one return, no drama β¨
π ARGUMENTS π
spawnβ the spawn you want the referencedstruct kpp_algfor. that's it, that's the input π¦
π₯ DESCRIPTION π₯
so here's the thing bestie, and i need you to actually listen to this part because it's giving timing π
this function β and the result it gives you β are safe to use only in this very specific window:
- after
spawnhas been successfully bound viacrypto_grab_kpp, and - up to until the template instance owning
spawnhas either been registered successfully, or the spawn has been released again viacrypto_drop_spawn.
that's the window. before it? nope. after it? also nope π use it outside that window and you're on your own, no cap.
β RETURN β
a pointer to the struct kpp_alg referenced from the spawn. one pointer, zero surprises π
π¦ SEE ALSO π¦
- Kernel file
./include/crypto/internal/kpp.h struct kpp_instance(9)struct crypto_kpp_spawn(9)kpp_crypto_instance(9)kpp_instance(9)kpp_alg_instance(9)kpp_instance_ctx(9)crypto_register_kpp(9)crypto_unregister_kpp(9)kpp_register_instance(9)crypto_grab_kpp(9)crypto_drop_kpp(9)crypto_spawn_kpp(9)
like a whole friend group honestly, go say hi to all of them π
and that's the page!! π this one lives over in ./include/crypto/internal and it's dated October 2026 β so yeah, mark your calendar bestie, that's the version and the date, periodt πβ¨π
π¦ 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