gss_krb5_aead_encrypt(9)
π 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 inbuf. 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 π
- Kernel file
./net/sunrpc/auth_gss/gss_krb5_crypto.cβ go read the source, iykyk π gss_krb5_aead_decrypt(9)β the reverse uno card πgss_krb5_mic_build_sg(9)β her bestie, the MIC builder π«Ά
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
- 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