Home | History | Annotate | Download | only in crypto

Lines Matching refs:Encryptor

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