crypto_krb5_...are_checksum(9)
π crypto_krb5_prepare_checksum β kernel API manual, section 9, bestie
okay so this is a page from the Kernel API Manual (section 9, the big-kid kernel space one), and it's literally all about getting your AEAD crypto object ready for checksum-mode. yes, that's the whole vibe. let's get into it π
β¨ NAME β¨
crypto_krb5_prepare_checksum β prepare an AEAD crypto object for checksum-mode, no cap π
πΈ SYNOPSIS πΈ
struct crypto_shash * crypto_krb5_prepare_checksum (const struct
krb5_enctype *krb5 , const struct krb5_buffer *TK , u32 usage , gfp_t
gfp );
like, that's the signature. it returns a struct crypto_shash *, bestie. remember that for later π
π¦ ARGUMENTS π¦
krb5β the encoding to use. yes, that one. the enctype. β¨TKβ the transport key to use. your key, your rules πusageβ the usage constant for key derivation. it's giving "context matters" π«Άgfpβ allocation flags. the usual allocation-flag situation π
π₯ DESCRIPTION π₯
so what this actually does: it allocates a crypto object that does all the necessary crypto β the whole thing, not just part of it β keys it up, sets its parameters, and hands you back the crypto handle to it. iconic behaviour honestly π
and then? then you can use that handle to dispatch get_mic and verify_mic operations. that's the payoff. that's the main character energy π
ngl, this is the "get your object ready so the MIC stuff can actually happen" function. no shortcuts, no extra steps, just allocate + key + set params + return handle. slay β¨
π SEE ALSO π
- Kernel file
./crypto/krb5/krb5_api.c 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_encryption(9)crypto_krb5_encrypt(9)crypto_krb5_decrypt(9)crypto_krb5_get_mic(9)crypto_krb5_verify_mic(9)
like a whole little krb5 crypto friend group. iykyk π§
okay that's the page!! sources say it lives at ./crypto/krb5, dated October 2026, and the header/footer label it crypto_krb5_...are_checksum(9) (the name got a lil truncated, it's fine, we love a mystery π«Ά). bye bestie, go prepare some checksums πβ¨π
π¦ 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