Skip to main content

tea_hash_filename

Function tea_hash_filename 

Source
pub fn tea_hash_filename(name_bytes: impl IntoIterator<Item = u8>) -> u32
Expand description

This algorithm is not cryptographically secure. It is used for filename hashing for compatibility reasons. name_bytes can be one of:

  • A case-sensitive UTF-8 filename (unencrypted)
  • A casefolded (+ nfd + default_ignorable) filename (unencrypted)
  • An encrypted case-sensitive UTF-8 filename (hashed over encrypted bytes) Encrypted casefolded filenames always use casefold_encrypt_hash_filename().