fscrypt_fname_siphash(9)
π 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 π
- Kernel file
./fs/crypto/fname.cβ the source, go read it, she's iconic π fscrypt_fname_encrypt(9)fname_decrypt(9)fscrypt_fname_encrypted_size(9)fscrypt_fname_alloc_buffer(9)fscrypt_fname_free_buffer(9)fscrypt_fname_disk_to_usr(9)fscrypt_setup_filename(9)fscrypt_match_name(9)
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
- 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