STRUCT KPP_INSTANCE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct kpp_instance β€” KPP template instance ✨

Hiii bestie πŸ’– welcome to the <struct kpp_instance(9)> page β€” it's a Kernel API Manual moment, and honestly? iconic. This is where KPP template instances live, and we're gonna walk through every member together, no cap.


🌸 SYNOPSIS 🌸

struct kpp_instance {
    void (*free)(struct kpp_instance *inst);
    union {
      struct {
        char head[offsetof(struct kpp_alg, base)];
        struct crypto_instance base;
      } s;
      struct kpp_alg alg;
    };
 };

πŸŽ€ Members πŸŽ€

  • free β€” the callback that gets invoked when the instance gets destroyed (rip little instance 😭). Must be set. Like, non-negotiable bestie β€” it's required.
  • {unnamed_union} β€” anonymous. That's it, that's the whole vibe. It's an unnamed union, slaying quietly πŸ’…
  • s β€” Internal. This is the generic crypto core instance state, laid out properly so it can alias with alg as needed. Under the hood energy, not for you to poke at 🫢
  • alg β€” the struct kpp_alg implementation that the instance is providing. This is the actual main character of the struct πŸ‘‘

🌈 SEE ALSO 🌈

Kernel file ./include/crypto/internal/kpp.h β€” go read it, iykyk πŸ“–


okay that's the whole page bestie, you ate that πŸ“ remember: set your free callback or it's giving undefined chaos πŸ’€

sign-off time ✨ this lil masterpiece lives in ./include/crypto/internal and the version is stamped October 2026. mwah, go forth and register your KPP instances responsibly πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from