ubifs_hash_calc_hmac(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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