ubifs_hash_calc_hmac(9)
π ubifs_hash_calc_hmac(9) π
Okay bestie, so this one is from the Kernel API Manual and it's lowkey a little legend: ubifs_hash_calc_hmac β the function whose whole personality is calculate a HMAC from a hash. That's it, that's the vibe. π
β¨ SYNOPSIS β¨
int ubifs_hash_calc_hmac (const struct ubifs_info *c , const u8 *hash ,
u8 *hmac );
Like, look at her. Three args, one int coming back. Iconic signature, no notes. π
πΈ ARGUMENTS πΈ
cβ the UBIFS file-system description object, aka the main character handing over all the context πhashβ the node we're calculating a HMAC for. That's the assignment, that's the task π«Άhmacβ the returned HMAC, i.e. where the answer gets dropped off on the way out β¨
π¦ DESCRIPTION π¦
So what does she return? Literally this:
Returns 0 for success or a negative error code otherwise.
That's the whole description, bestie. 0 = slay, negative = not slay π. No cap, that's genuinely all she wrote.
π SEE ALSO π
The kernel file is ./fs/ubifs/auth.c and honestly the whole friend group shows up here β no gatekeeping, everyone's invited:
__ubifs_node_calc_hash(9)ubifs_prepare_auth_node(9)__ubifs_hash_get_desc(9)ubifs_bad_hash(9)__ubifs_node_check_hash(9)ubifs_sb_verify_signature(9)ubifs_init_authentication(9)__ubifs_exit_authentication(9)ubifs_node_calc_hmac(9)__ubifs_node_insert_hmac(9)__ubifs_node_verify_hmac(9)ubifs_hmac_wkm(9)
And that's the whole page, bestie! π§ This lil masterpiece lives at ./fs/ubifs and it's dated October 2026 β yes, future girlie behavior, we love to see it. Periodt. ππ
π¦ 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