Searched refs:master_key (Results 1 – 4 of 4) sorted by relevance
/test/vts-testcase/kernel/encryption/ |
D | file_based_encryption_tests.cpp | 345 bool SetMasterKey(const std::vector<uint8_t> &master_key, uint32_t flags = 0, 353 bool VerifyKeyIdentifier(const std::vector<uint8_t> &master_key); 354 bool DerivePerModeEncryptionKey(const std::vector<uint8_t> &master_key, 357 bool DerivePerFileEncryptionKey(const std::vector<uint8_t> &master_key, 363 void TestEmmcOptimizedDunWraparound(const std::vector<uint8_t> &master_key, 415 bool FBEPolicyTest::SetMasterKey(const std::vector<uint8_t> &master_key, in SetMasterKey() argument 417 size_t allocsize = sizeof(struct fscrypt_add_key_arg) + master_key.size(); in SetMasterKey() 423 arg->raw_size = master_key.size(); in SetMasterKey() 424 std::copy(master_key.begin(), master_key.end(), arg->raw); in SetMasterKey() 428 << BytesToHex(master_key); in SetMasterKey() [all …]
|
D | utils.cpp | 335 bool CreateHwWrappedKey(std::vector<uint8_t> *master_key, in CreateHwWrappedKey() argument 337 *master_key = GenerateTestKey(kHwWrappedKeySize); in CreateHwWrappedKey() 344 std::string master_key_string(master_key->begin(), master_key->end()); in CreateHwWrappedKey() 402 bool DeriveHwWrappedEncryptionKey(const std::vector<uint8_t> &master_key, in DeriveHwWrappedEncryptionKey() argument 415 return AesCmacKdfHelper(master_key, label, context, kAes256XtsKeySize, in DeriveHwWrappedEncryptionKey() 419 bool DeriveHwWrappedRawSecret(const std::vector<uint8_t> &master_key, in DeriveHwWrappedRawSecret() argument 430 return AesCmacKdfHelper(master_key, label, context, kAes256KeySize, secret); in DeriveHwWrappedRawSecret()
|
D | vts_kernel_encryption.h | 110 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,
|
D | metadata_encryption_tests.cpp | 281 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()
|