Lines Matching refs:encryptor
20 crypto::Encryptor encryptor; in TEST() local
24 EXPECT_TRUE(encryptor.Init(key.get(), crypto::Encryptor::CBC, iv)); in TEST()
28 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); in TEST()
33 EXPECT_TRUE(encryptor.Decrypt(ciphertext, &decypted)); in TEST()
94 crypto::Encryptor encryptor; in TEST() local
98 EXPECT_TRUE(encryptor.Init(sym_key.get(), crypto::Encryptor::CBC, iv)); in TEST()
103 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); in TEST()
109 EXPECT_TRUE(encryptor.Decrypt(ciphertext, &decypted)); in TEST()
127 crypto::Encryptor encryptor; in TEST() local
130 EXPECT_TRUE(encryptor.Init(sym_key.get(), crypto::Encryptor::CBC, iv)); in TEST()
133 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); in TEST()
138 EXPECT_TRUE(encryptor.Decrypt(ciphertext, &decypted)); in TEST()
153 crypto::Encryptor encryptor; in TEST() local
156 EXPECT_TRUE(encryptor.Init(sym_key.get(), crypto::Encryptor::CBC, iv)); in TEST()
159 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); in TEST()
164 EXPECT_TRUE(encryptor.Decrypt(ciphertext, &decypted)); in TEST()
178 crypto::Encryptor encryptor; in TEST() local
181 EXPECT_FALSE(encryptor.Init(sym_key.get(), crypto::Encryptor::CBC, iv)); in TEST()
192 crypto::Encryptor encryptor; in TEST() local
193 EXPECT_FALSE(encryptor.Init(sym_key.get(), crypto::Encryptor::CBC, iv)); in TEST()
206 crypto::Encryptor encryptor; in TEST() local
209 EXPECT_TRUE(encryptor.Init(sym_key.get(), crypto::Encryptor::CBC, iv)); in TEST()
212 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext)); in TEST()
225 crypto::Encryptor encryptor; in TEST() local
228 EXPECT_TRUE(encryptor.Init(sym_key.get(), crypto::Encryptor::CBC, iv)); in TEST()
231 EXPECT_FALSE(encryptor.Decrypt("", &decrypted)); in TEST()