crypto_krb5_...e_encryption(9)
π crypto_krb5_prepare_encryption(9) β the kernel API manual bestie π
okay so real talk, this one lives in section 9 of the kernel API manual, and it's literally the "get your crypto object ready" girlie. she sets everything up so you don't have to. no cap. β¨
πΈ NAME πΈ
crypto_krb5_prepare_encryption β prepare an AEAD crypto object for encryption-mode π«Ά
like, she prepares it. she's the prep. the setup era. the "we're about to encrypt, let me get cute first" moment. π
β¨ SYNOPSIS β¨
struct crypto_aead * crypto_krb5_prepare_encryption (const struct
krb5_enctype *krb5 , const struct krb5_buffer *TK , u32 usage , gfp_t
gfp );
that's the whole vibe check right there β returns a struct crypto_aead *, and yes she takes four arguments, we'll get to those π
π¦ ARGUMENTS π¦
krb5β the encoding to use. like, which enctype are we doing today, bestie? that's her.TKβ the transport key to use. the actual key. the main character of keys, honestly πusageβ the usage constant for key derivation. so the key can be derived correctly, obviously πgfpβ allocation flags. the usualgfp_tsituation. memory allocation vibes β¨
π DESCRIPTION π
okay so here's the tea, and it's honestly iconic:
she allocates a crypto object β one that does all the necessary crypto β then she keys it, and sets its parameters, and returns the crypto handle to it. that's the whole job. that's her whole personality. π
and then??? that returned handle can be used to dispatch encrypt and decrypt operations. so like, she sets you up and then you go do the actual encrypting/decrypting. she's the friend who books the reservation and then lets you enjoy the dinner. π
π reminder for the girlies: this is for encryption-mode. don't come at her expecting checksum-mode energy. different function, different fit.
π SEE ALSO π
we are so not alone here, this whole little krb5 crypto friend group is giving found family π«Ά
the kernel file: ./crypto/krb5/krb5_api.c
and the rest of the crew:
crypto_krb5_find_enctype(9)crypto_krb5_how_much_buffer(9)crypto_krb5_how_much_data(9)crypto_krb5_where_is_the_data(9)crypto_krb5_check_data_len(9)crypto_krb5_prepare_checksum(9)crypto_krb5_encrypt(9)crypto_krb5_decrypt(9)crypto_krb5_get_mic(9)crypto_krb5_verify_mic(9)
like, she's got a whole group chat and they all ate. periodt. π π₯
π§ sign-off π§
this little masterpiece comes courtesy of ./crypto/krb5, dated October 2026, and she's filed under crypto_krb5_...e_encryption(9) because apparently we're abbreviating now and honestly? slay. πβ¨
okay bye bestie, go encrypt something, ily ππ¦
π¦ 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