gss_krb5_aead_encrypt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gss_krb5_aead_encrypt(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes it's a kernel manpage, yes we're gonna make it cute, and yes the facts are staying exactly where they are πŸŽ€


✨ NAME ✨

gss_krb5_aead_encrypt β€” the girlboss that encrypts a wrap token using crypto/krb5 πŸ¦‹


🌸 SYNOPSIS 🌸

u32 gss_krb5_aead_encrypt (struct krb5_ctx *kctx , u32 offset , struct xdr_buf *buf , struct page **pages );

like… that's the whole signature, no cap ✨


πŸ’– ARGUMENTS πŸ’–

  • kctx β€” your Kerberos context, the main character of this whole operation πŸ‘‘
  • offset β€” the byte offset of the GSS token header in buf. literally where the header starts, don't @ me πŸ’…
  • buf β€” OUT: the send buffer. yes bestie, it's an output param 🫢
  • pages β€” the plaintext payload pages (aka page cache data) πŸ“„βœ¨

🧚 DESCRIPTION 🧚

so the xdr_buf setup here mirrors the original per-enctype encrypt functions β€” same energy, same layout, iconic behavior preserved 😌

but here's the glow-up: the CBC-CTS encryption and the HMAC are replaced by a single AEAD operation going through the crypto/krb5 library πŸ”₯ like, two jobs became one, and she ate πŸ’…

Return values β€” the vibe check at the end:

  • GSS_S_COMPLETE β€” encryption successful, slay πŸŽ‰
  • GSS_S_FAILURE β€” encryption failed, and we are devastated 😭

🌈 SEE ALSO 🌈


fr fr: if that return value comes back GSS_S_FAILURE, that's a hard fail, not a soft one β€” no vibes, just failure πŸ’”

and that's the page, bestie πŸ’œ this lil' gem lives in ./net/sunrpc/auth_gss, dated October 2026, and it's serving Kernel API Manual realness from start to finish βœ¨πŸŽ€πŸ¦‹ periodt πŸ’…

πŸ“¦ where this page comes from