Home
last modified time | relevance | path

Searched refs:hkdf_info (Results 1 – 1 of 1) sorted by relevance

/test/vts-testcase/kernel/encryption/
Dfile_based_encryption_tests.cpp602 const std::vector<uint8_t> &hkdf_info, in DeriveKey() argument
605 master_key.size(), nullptr, 0, hkdf_info.data(), in DeriveKey()
606 hkdf_info.size()) != 1) { in DeriveKey()
611 << " using HKDF info " << BytesToHex(hkdf_info); in DeriveKey()
619 std::vector<uint8_t> hkdf_info = InitHkdfInfo(HKDF_CONTEXT_KEY_IDENTIFIER); in VerifyKeyIdentifier() local
621 if (!DeriveKey(master_key, hkdf_info, computed_key_identifier)) return false; in VerifyKeyIdentifier()
635 std::vector<uint8_t> hkdf_info = InitHkdfInfo(context); in DerivePerModeEncryptionKey() local
637 hkdf_info.push_back(mode); in DerivePerModeEncryptionKey()
640 hkdf_info.insert(hkdf_info.end(), fs_info_.uuid.bytes, in DerivePerModeEncryptionKey()
643 return DeriveKey(master_key, hkdf_info, enc_key); in DerivePerModeEncryptionKey()
[all …]