Home
last modified time | relevance | path

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

/system/tpm/attestation/common/
Dcrypto_utility_impl_test.cc62 crypto_utility_.reset(new CryptoUtilityImpl(&mock_tpm_utility_)); in SetUp()
67 std::unique_ptr<CryptoUtilityImpl> crypto_utility_; member in attestation::CryptoUtilityImplTest
72 EXPECT_TRUE(crypto_utility_->GetRandom(20, &random1)); in TEST_F()
74 EXPECT_TRUE(crypto_utility_->GetRandom(20, &random2)); in TEST_F()
81 EXPECT_FALSE(crypto_utility_->GetRandom(num_bytes, &buffer)); in TEST_F()
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()
95 EXPECT_TRUE(crypto_utility_->UnsealKey(encrypted_data, &key, &sealed_key)); in TEST_F()
96 EXPECT_TRUE(crypto_utility_->DecryptData(encrypted_data, key, &data)); in TEST_F()
105 EXPECT_FALSE(crypto_utility_->CreateSealedKey(&key, &sealed_key)); in TEST_F()
[all …]
/system/tpm/attestation/server/
Dattestation_service.h96 crypto_utility_ = crypto_utility; in set_crypto_utility()
274 CryptoUtility* crypto_utility_{nullptr};
Dattestation_service.cc61 if (!crypto_utility_) { in Initialize()
63 crypto_utility_ = default_crypto_utility_.get(); in Initialize()
66 default_database_.reset(new DatabaseImpl(crypto_utility_)); in Initialize()
562 if (!crypto_utility_->GetRandom(kNonceSize, message_id)) { in CreateCertificateRequest()
678 if (!crypto_utility_->GetRandom(kNonceSize, &nonce)) { in CreateKey()
865 return crypto_utility_->GetRSASubjectPublicKeyInfo(public_key, in GetSubjectPublicKeyInfo()