krb5_derive_Ki(9)
π krb5_derive_Ki(9) β a Kernel API Manual moment
okay so bestie, we're in the Kernel API Manual today and the main character is krb5_derive_Ki(9) β say it with me, it's giving crypto, it's giving Kerberos, it's giving "I derive keys and I do it flawlessly." β¨
πΈ NAME πΈ
krb5_derive_Ki β derive key Ki and install it into a hash π
like, that's the whole vibe. derive Ki. install it. done. periodt.
π¦ SYNOPSIS π¦
int krb5_derive_Ki (const struct krb5_enctype *krb5 , const struct
krb5_buffer *TK , u32 usage , struct krb5_buffer *key , gfp_t gfp );
she takes five arguments and returns an int, no cap π
π ARGUMENTS π
krb5β the encryption type to use π₯ like, which flavor of crypto are we working with, bestieTKβ the base key ποΈ the OG key that everything gets derived fromusageβ the key usage number π’ au32, so she's got rangekeyβ a prepped buffer to store the key into π prepped, okay? it has to already be ready, don't come at her with a raw un-prepped buffergfpβ allocation restrictions π the rules about how memory gets allocated, iykyk
β¨ DESCRIPTION β¨
So what she actually does: she derives the Kerberos Ki integrity checksum key π That's the Ki. That's the whole assignment.
Then the key gets stored into the prepared buffer β the one you handed her in key β and that's it. She's not doing extra. She's not doing too much. She's doing exactly this and she's eating π
lowkey important reminder from the top: that buffer needs to be prepared before you call her. She's storing into it, not conjuring it out of thin air π«Ά
π SEE ALSO π
- Kernel file
./crypto/krb5/krb5_kdf.cπ crypto_krb5_calc_PRFplus(9)krb5_derive_Kc(9)krb5_derive_Ke(9)
the whole key-derivation friend group honestly, go say hi to Kc and Ke too, they're iconic in their own right π¦
and that's the page!! source situation is ./crypto/krb5, dated October 2026, and yes she's still krb5_derive_Ki(9) bestie, she never changed π mwah, go derive some keys πβ¨
π¦ 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