fscrypt_fname_siphash(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fscrypt_fname_siphash πŸ’…

okay bestie, welcome to the Kernel API Manual entry for fscrypt_fname_siphash(9) β€” yes that's the whole name, yes it's a mouthful, no we're not shortening it, she earned it πŸ‘‘


✨ NAME ✨

fscrypt_fname_siphash β€” calculate the SipHash of a filename 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

u64 fscrypt_fname_siphash (const struct inode *dir , const struct qstr
*name );

πŸŽ€ ARGUMENTS πŸŽ€

  • dir β€” the parent directory, the one holding the keys to the kingdom πŸ”‘
  • name β€” the filename we're calculating the SipHash of, the main character of this whole operation πŸ’–

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea β˜• β€” you hand over a plaintext filename name, and a directory dir. but not just any directory, bestie: dir has to be one that uses SipHash as its dirhash method and has had its fscrypt key set up already. both. no skipping steps πŸ™ˆ

given all that, this function calculates the SipHash of that name using the directory's secret dirhash key. literally using the dir's own private key, iykyk. that's it, that's the function πŸ’…


🌈 RETURN 🌈

the SipHash of name using the hash key of dir ✨ β€” that's the u64 you get back, no cap 🫢


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the vibe check, bestie 🧚 β€” this whole page came out of ./fs/crypto, dated October 2026, and it's titled fscrypt_fname_siphash(9). slay, go hash some filenames πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from