Lines Matching refs:salt
83 const void *salt, uint32_t block_length,
108 bool CalculateDigest(const void *buffer, size_t size, const void *salt, in CalculateDigest() argument
114 if (update_func_(&ctx, salt, salt_length) != 1) { in CalculateDigest()
147 const void *salt, int32_t block_length, in CalculateZeroDigest() argument
150 return hasher.CalculateDigest(buffer.data(), size, salt, block_length, in CalculateZeroDigest()
215 const std::vector<uint8_t> &salt, in VerifyHashtree() argument
266 if (!CalculateZeroDigest(hasher, data_block_size, salt.data(), salt.size(), in VerifyHashtree()
290 salt.data(), salt.size(), current_digest)) { in VerifyHashtree()
497 const std::string &salt_str = descriptor->salt; in TEST()
509 std::vector<uint8_t> salt, expected_digest, out_digest; in TEST() local
510 bool ok = HexToBytes(salt_str, &salt); in TEST()
525 salt.data(), descriptor->salt_len, out_digest.data())) in TEST()
551 const std::string &salt_str = descriptor->salt; in TEST()
563 std::vector<uint8_t> salt, expected_digest; in TEST() local
564 bool ok = HexToBytes(salt_str, &salt); in TEST()
577 fd, descriptor->image_size, salt, descriptor->data_block_size, in TEST()
657 descriptor->salt, in TEST()