Lines Matching defs:dirhash
32 * The filesystem may also need another kind of hash, the "dirhash", to quickly
33 * find the directory entry. Since filesystems normally compute the dirhash
38 * casefolded directories use this type of dirhash. At least in these cases,
39 * each no-key name must include the name's dirhash too.
42 * variable-length structure. It contains the dirhash, or 0's if the filesystem
52 u32 dirhash[2];
299 * @hash: first part of the name's dirhash, if applicable. This only needs to
302 * @minor_hash: second part of the name's dirhash, if applicable
341 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, dirhash) !=
347 nokey_name.dirhash[0] = hash;
348 nokey_name.dirhash[1] = minor_hash;
452 fname->hash = nokey_name->dirhash[0];
453 fname->minor_hash = nokey_name->dirhash[1];
510 * its dirhash method and has had its fscrypt key set up, this function
511 * calculates the SipHash of that name using the directory's secret dirhash key.