Home
last modified time | relevance | path

Searched refs:crypto_ (Results 1 – 7 of 7) sorted by relevance

/system/connectivity/shill/
Dcrypto_des_cbc_unittest.cc49 CryptoDESCBC crypto_; member in shill::CryptoDESCBCTest
53 EXPECT_EQ(CryptoDESCBC::kID, crypto_.GetID()); in TEST_F()
62 EXPECT_FALSE(crypto_.LoadKeyMatter(key_matter)); in TEST_F()
63 EXPECT_TRUE(crypto_.key().empty()); in TEST_F()
64 EXPECT_TRUE(crypto_.iv().empty()); in TEST_F()
69 EXPECT_FALSE(crypto_.LoadKeyMatter(key_matter)); in TEST_F()
70 EXPECT_TRUE(crypto_.key().empty()); in TEST_F()
71 EXPECT_TRUE(crypto_.iv().empty()); in TEST_F()
74 EXPECT_TRUE(crypto_.LoadKeyMatter(key_matter)); in TEST_F()
75 EXPECT_EQ(kTestKey, string(crypto_.key().begin(), crypto_.key().end())); in TEST_F()
[all …]
Dcrypto_rot47_unittest.cc36 CryptoROT47 crypto_; member in shill::CryptoROT47Test
40 EXPECT_EQ(CryptoROT47::kID, crypto_.GetID()); in TEST_F()
45 EXPECT_TRUE(crypto_.Encrypt(kPlainText, &text)); in TEST_F()
47 EXPECT_TRUE(crypto_.Encrypt(kEmpty, &text)); in TEST_F()
53 EXPECT_TRUE(crypto_.Decrypt(kCipherText, &text)); in TEST_F()
55 EXPECT_TRUE(crypto_.Decrypt(kEmpty, &text)); in TEST_F()
Dkey_file_store.cc61 : crypto_(), in KeyFileStore()
85 crypto_.Init(); in Open()
379 *value = crypto_.Decrypt(*value); in GetCryptedString()
387 return SetString(group, key, crypto_.Encrypt(value)); in SetCryptedString()
Dkey_file_store.h102 CryptoProvider crypto_; variable
Dkey_file_store_unittest.cc91 EXPECT_EQ(1, store_->crypto_.cryptos_.size()); in TEST_F()
/system/tpm/attestation/server/
Ddatabase_impl.cc50 DatabaseImpl::DatabaseImpl(CryptoUtility* crypto) : io_(this), crypto_(crypto) { in DatabaseImpl()
166 if (!crypto_->CreateSealedKey(&database_key_, &sealed_database_key_)) { in EncryptProtobuf()
171 if (!crypto_->EncryptData(serial_proto, database_key_, sealed_database_key_, in EncryptProtobuf()
180 if (!crypto_->UnsealKey(encrypted_input, &database_key_, in DecryptProtobuf()
186 if (!crypto_->DecryptData(encrypted_input, database_key_, &serial_proto)) { in DecryptProtobuf()
Ddatabase_impl.h82 CryptoUtility* crypto_; variable