Searched refs:sealed_key (Results 1 – 5 of 5) sorted by relevance
/system/tpm/attestation/common/ |
D | mock_crypto_utility.h | 36 bool(std::string* aes_key, std::string* sealed_key)); 41 const std::string& sealed_key, 47 std::string* sealed_key));
|
D | crypto_utility.h | 37 std::string* sealed_key) = 0; 45 const std::string& sealed_key, 54 std::string* sealed_key) = 0;
|
D | crypto_utility_impl_test.cc | 86 std::string sealed_key; in TEST_F() local 87 EXPECT_TRUE(crypto_utility_->CreateSealedKey(&key, &sealed_key)); in TEST_F() 91 crypto_utility_->EncryptData(data, key, sealed_key, &encrypted_data)); 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()
|
D | crypto_utility_impl.h | 39 bool CreateSealedKey(std::string* aes_key, std::string* sealed_key) override; 42 const std::string& sealed_key, 46 std::string* sealed_key) override;
|
D | crypto_utility_impl.cc | 83 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()
|