Lines Matching refs:crypto_

49   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()
76 EXPECT_EQ(kTestIV, string(crypto_.iv().begin(), crypto_.iv().end())); in TEST_F()
83 EXPECT_TRUE(crypto_.LoadKeyMatter(key_matter)); in TEST_F()
84 EXPECT_EQ(kKey2, string(crypto_.key().begin(), crypto_.key().end())); in TEST_F()
85 EXPECT_EQ(kIV2, string(crypto_.iv().begin(), crypto_.iv().end())); in TEST_F()
88 EXPECT_FALSE(crypto_.LoadKeyMatter(key_matter)); in TEST_F()
89 EXPECT_TRUE(crypto_.key().empty()); in TEST_F()
90 EXPECT_TRUE(crypto_.iv().empty()); in TEST_F()
94 crypto_.key_.assign(kTestKey, kTestKey + strlen(kTestKey)); in TEST_F()
95 crypto_.iv_.assign(kTestIV, kTestIV + strlen(kTestIV)); in TEST_F()
98 EXPECT_FALSE(crypto_.Encrypt(kPlainText, &ciphertext)); in TEST_F()
102 crypto_.key_.assign(kTestKey, kTestKey + strlen(kTestKey)); in TEST_F()
103 crypto_.iv_.assign(kTestIV, kTestIV + strlen(kTestIV)); in TEST_F()
106 EXPECT_TRUE(crypto_.Decrypt(kEmptyCipher, &plaintext)); in TEST_F()
108 EXPECT_TRUE(crypto_.Decrypt(kCipherText, &plaintext)); in TEST_F()
110 EXPECT_TRUE(crypto_.Decrypt(kCipherVersion1, &plaintext)); in TEST_F()
113 EXPECT_FALSE(crypto_.Decrypt("random", &plaintext)); in TEST_F()
114 EXPECT_FALSE(crypto_.Decrypt("02:random", &plaintext)); in TEST_F()
115 EXPECT_FALSE(crypto_.Decrypt("~", &plaintext)); in TEST_F()
116 EXPECT_FALSE(crypto_.Decrypt("02:~", &plaintext)); in TEST_F()
117 EXPECT_FALSE(crypto_.Decrypt(kEmptyPlain, &plaintext)); in TEST_F()
118 EXPECT_FALSE(crypto_.Decrypt(kEmptyCipherNoSentinel, &plaintext)); in TEST_F()
121 EXPECT_FALSE(crypto_.Decrypt("MTIzNDU2Nzg=", &plaintext)); in TEST_F()