Lines Matching refs:ciphertext
27 std::string ciphertext;
28 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext));
30 EXPECT_LT(0U, ciphertext.size());
33 EXPECT_TRUE(encryptor.Decrypt(ciphertext, &decypted));
102 std::string ciphertext;
103 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext));
105 EXPECT_EQ(sizeof(raw_ciphertext), ciphertext.size());
106 EXPECT_EQ(0, memcmp(ciphertext.data(), raw_ciphertext, ciphertext.size()));
109 EXPECT_TRUE(encryptor.Decrypt(ciphertext, &decypted));
132 std::string ciphertext;
133 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext));
134 EXPECT_EQ(expected_ciphertext_hex, base::HexEncode(ciphertext.data(),
135 ciphertext.size()));
138 EXPECT_TRUE(encryptor.Decrypt(ciphertext, &decypted));
158 std::string ciphertext;
159 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext));
160 EXPECT_EQ(expected_ciphertext_hex, base::HexEncode(ciphertext.data(),
161 ciphertext.size()));
164 EXPECT_TRUE(encryptor.Decrypt(ciphertext, &decypted));
211 std::string ciphertext;
212 EXPECT_TRUE(encryptor.Encrypt(plaintext, &ciphertext));
213 EXPECT_EQ(expected_ciphertext_hex, base::HexEncode(ciphertext.data(),
214 ciphertext.size()));