Home
last modified time | relevance | path

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

/test/vts-testcase/kernel/encryption/
Dfile_based_encryption_tests.cpp342 bool SetMasterKey(const std::vector<uint8_t> &master_key, uint32_t flags = 0,
350 bool VerifyKeyIdentifier(const std::vector<uint8_t> &master_key);
351 bool DerivePerModeEncryptionKey(const std::vector<uint8_t> &master_key,
354 bool DerivePerFileEncryptionKey(const std::vector<uint8_t> &master_key,
360 void TestEmmcOptimizedDunWraparound(const std::vector<uint8_t> &master_key,
412 bool FBEPolicyTest::SetMasterKey(const std::vector<uint8_t> &master_key, in SetMasterKey() argument
414 size_t allocsize = sizeof(struct fscrypt_add_key_arg) + master_key.size(); in SetMasterKey()
420 arg->raw_size = master_key.size(); in SetMasterKey()
421 std::copy(master_key.begin(), master_key.end(), arg->raw); in SetMasterKey()
425 << BytesToHex(master_key); in SetMasterKey()
[all …]
Dutils.cpp336 bool CreateHwWrappedKey(std::vector<uint8_t> *master_key, in CreateHwWrappedKey() argument
338 *master_key = GenerateTestKey(kHwWrappedKeySize); in CreateHwWrappedKey()
345 std::string master_key_string(master_key->begin(), master_key->end()); in CreateHwWrappedKey()
403 bool DeriveHwWrappedEncryptionKey(const std::vector<uint8_t> &master_key, in DeriveHwWrappedEncryptionKey() argument
416 return AesCmacKdfHelper(master_key, label, context, kAes256XtsKeySize, in DeriveHwWrappedEncryptionKey()
420 bool DeriveHwWrappedRawSecret(const std::vector<uint8_t> &master_key, in DeriveHwWrappedRawSecret() argument
431 return AesCmacKdfHelper(master_key, label, context, kAes256KeySize, secret); in DeriveHwWrappedRawSecret()
Dvts_kernel_encryption.h110 bool CreateHwWrappedKey(std::vector<uint8_t> *master_key,
113 bool DeriveHwWrappedEncryptionKey(const std::vector<uint8_t> &master_key,
116 bool DeriveHwWrappedRawSecret(const std::vector<uint8_t> &master_key,
Dmetadata_encryption_tests.cpp281 std::vector<uint8_t> master_key, exported_key; in TEST_F() local
282 if (!CreateHwWrappedKey(&master_key, &exported_key)) return; in TEST_F()
287 ASSERT_TRUE(DeriveHwWrappedEncryptionKey(master_key, &enc_key)); in TEST_F()