Home
last modified time | relevance | path

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

/system/tpm/attestation/common/
Dmock_crypto_utility.h36 std::string* sealed_key));
40 const std::string& sealed_key,
45 std::string* sealed_key));
Dcrypto_utility.h37 std::string* sealed_key) = 0;
45 const std::string& sealed_key,
54 std::string* sealed_key) = 0;
Dcrypto_utility_impl_test.cc86 std::string sealed_key; in TEST_F() local
87 EXPECT_TRUE(crypto_utility_->CreateSealedKey(&key, &sealed_key)); in TEST_F()
90 EXPECT_TRUE(crypto_utility_->EncryptData(data, key, sealed_key, in TEST_F()
93 sealed_key.clear(); in TEST_F()
95 EXPECT_TRUE(crypto_utility_->UnsealKey(encrypted_data, &key, &sealed_key)); in TEST_F()
104 std::string sealed_key; in TEST_F() local
105 EXPECT_FALSE(crypto_utility_->CreateSealedKey(&key, &sealed_key)); in TEST_F()
Dcrypto_utility_impl.h39 bool CreateSealedKey(std::string* aes_key, std::string* sealed_key) override;
42 const std::string& sealed_key,
46 std::string* sealed_key) override;
Dcrypto_utility_impl.cc83 std::string* sealed_key) { in CreateSealedKey() argument
88 if (!tpm_utility_->SealToPCR0(*aes_key, sealed_key)) { in CreateSealedKey()
97 const std::string& sealed_key, in EncryptData() argument
110 encrypted_pb.set_wrapped_key(sealed_key); in EncryptData()
123 std::string* sealed_key) { in UnsealKey() argument
129 *sealed_key = encrypted_pb.wrapped_key(); in UnsealKey()
130 if (!tpm_utility_->Unseal(*sealed_key, aes_key)) { in UnsealKey()