crypto_krb5_get_mic(9)
π crypto_krb5_get_mic(9)
okay bestie, welcome to the Kernel API Manual β¨ this one's about slapping a Kerberos integrity checksum onto your buffer, and honestly? it ate.
π NAME
crypto_krb5_get_mic β apply that Kerberos integrity checksum, periodt π
πΈ SYNOPSIS
ssize_t crypto_krb5_get_mic (const struct krb5_enctype *krb5 , struct
crypto_shash *shash , const struct krb5_buffer *metadata , struct
scatterlist *sg , unsigned int nr_sg , size_t sg_len , size_t
data_offset , size_t data_len );
β¨ ARGUMENTS
krb5β the encoding to use, like literally which flavor of Kerberos we're vibing with π¦shashβ the keyed hash to use, this is the main character of the hashing operation πmetadataβ metadata to add into the hash before adding the data, order matters bestie πsgβ scatterlist defining the crypto buffer, that's the whole spread π«Άnr_sgβ the number of elements insg, count 'em βsg_lenβ the size of the buffer, yes the whole thing πdata_offsetβ the offset of the data in thesgbuffer, where the actual goods start π₯data_lenβ the length of the data, how much of it there is πΈ
π DESCRIPTION
Using the specified Kerberos encoding, calculate and insert an integrity checksum into the buffer β¨ that's the whole gig, no cap.
π¨ real talk: the buffer must include space for the checksum at the front. like, you gotta leave room for it upfront or this is not gonna go how you want π
On success it returns the size of the secure blob π β and if it doesn't slay, here's the receipts:
-ENOMEMβ allocation failure, the allocator said no π-EFAULTβ insufficient space, there's just not enough room π-EMSGSIZEβ the gap for the checksum is too short, awkward π
Other errors may also be returned from the crypto layer, so don't come for this manpage if the crypto layer has its own opinions π§
π¦ SEE ALSO
Kernel file ./crypto/krb5/krb5_api.c, plus the whole friend group:
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_prepare_checksum(9)crypto_krb5_encrypt(9)crypto_krb5_decrypt(9)crypto_krb5_verify_mic(9)
and that's the tea, bestie π this little icon lives in ./crypto/krb5 and was stamped October 2026 β go forth and checksum responsibly, 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