crypto_krb5_verify_mic(9)
π crypto_krb5_verify_mic β Kernel API Manual, bestie edition π
okay so this is crypto_krb5_verify_mic(9) and honestly? she's the vibe check of the Kerberos crypto layer. she looks at your integrity checksum, verifies it's actually valid, and then yeets it out of the buffer. iconic behavior honestly π¦
β¨ NAME β¨
crypto_krb5_verify_mic β validate and remove the Kerberos integrity checksum π
πΈ SYNOPSIS πΈ
int crypto_krb5_verify_mic (const struct krb5_enctype *krb5 , struct
crypto_shash *shash , const struct krb5_buffer *metadata , struct
scatterlist *sg , unsigned int nr_sg , size_t *_offset , size_t *_len );
π«Ά ARGUMENTS π«Ά
krb5β the encoding to use, periodt β¨shashβ the keyed hash to use π₯metadataβ metadata that gets added into the hash before the data goes in, no capsgβ the scatterlist that defines the crypto buffer πnr_sgβ how many elements are insg, literally just the count_offsetβ offset of the secure blob in the buffer; gets updated to the data offset π_lenβ length of the secure blob; gets updated to the data length β
π DESCRIPTION π
okay so what she actually does: using the specified Kerberos encoding, she checks the integrity checksum and then removes it. lowkey a whole queen for that π
if it all works out, _offset and _len get updated so they outline the region where the data is actually stored. slay π
returns 0 if successful, -ENOMEM on an allocation failure; sets *_error_code and returns -EPROTO if the data cannot be parsed, or -EBADMSG if the checksum doesn't match). ngl if that checksum doesn't match it's giving π
also, other errors may still be returned from the crypto layer, so don't come for her if something else shows up π
π§ SEE ALSO π§
kernel file ./crypto/krb5/krb5_api.c plus her 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_get_mic(9)
and that's the whole page bestie π brought to you straight out of ./crypto/krb5, dated October 2026, and yes she's still serving crypto_krb5_verify_mic(9) energy at the very end. mwah π
π¦ 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