ubifs_hmac_wkm(9)
π ubifs_hmac_wkm(9) β a Kernel API Manual moment π
okay so bestie, this is ubifs_hmac_wkm from the kernel API manual, and honestly? it's giving "small function, big responsibility." let's get into it β¨
πΈ NAME πΈ
ubifs_hmac_wkm β create a HMAC of the well known message π«Ά
β SYNOPSIS β
int ubifs_hmac_wkm (struct ubifs_info *c , u8 *hmac );
like, that's the whole signature. no notes. iconic. π
π¦ ARGUMENTS π¦
cβ the UBIFS file-system description object π (yes, the whole file system is in this one little pointer, nbd)hmacβ the HMAC of the well known message π₯ that's the output, bestie, it lives here now
π DESCRIPTION π
okay so what does this even do. this function creates a HMAC of a well known message. and why, you ask? because it's used to check if the key you handed it is actually suitable to authenticate a UBIFS image. vibe check for cryptographic keys, basically. π
but here's the tea β this is only a convenience to the user, so they get a better error message when the wrong key is provided. that's it. that's the whole gig. not me being the friendliest possible error path ππ«Ά
and the return sitch:
this function returns0for success, or a negative error code otherwise. so like,0= slay, negative = not slay. π
β¨ SEE ALSO β¨
the whole friend group, fr fr:
- Kernel file
./fs/ubifs/auth.c __ubifs_node_calc_hash(9)ubifs_hash_calc_hmac(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)
like, go read them. they're all in their authentication era together ππ§
and that's the page, bestie! it lives over at ./fs/ubifs and this lil snapshot is dated October 2026 β main character documentation energy only, no cap. ππβ¨
π¦ 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