Constants§
- HKDF_
CONTEXT_ DIRHASH_ KEY - HKDF_
CONTEXT_ INODE_ HASH_ KEY - HKDF_
CONTEXT_ IV_ INO_ LBLK_ 32_ KEY - HKDF_
CONTEXT_ KEY_ IDENTIFIER - HKDF_
CONTEXT_ PER_ FILE_ ENC_ KEY
Functions§
- fscrypt_
hkdf - An fscrypt compatible implementation of HKDF (HKDF-extract + HKDF-expand)
This is just regular HKDF but with ‘info’ prefixed.
contextis an fscrypt special. - hkdf
- Standard HKDF implementation. See https://datatracker.ietf.org/doc/html/rfc5869
Note that we assume an all-zero seed for PRK.
initial_key_materialis the data being hashed.infois optional context (can be zero length string)outis populated with the result.