Home | History | Annotate | Download | only in password_manager

Lines Matching refs:ciphertext

34   std::string ciphertext;
37 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext));
38 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result));
43 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext));
44 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result));
50 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext));
51 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result));
64 EXPECT_TRUE(Encryptor::EncryptString16(plaintext, &ciphertext));
65 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result));
67 EXPECT_TRUE(Encryptor::DecryptString(ciphertext, &utf8_result));
70 EXPECT_TRUE(Encryptor::EncryptString(utf8_plaintext, &ciphertext));
71 EXPECT_TRUE(Encryptor::DecryptString16(ciphertext, &result));
73 EXPECT_TRUE(Encryptor::DecryptString(ciphertext, &utf8_result));
80 std::string ciphertext;
83 ASSERT_TRUE(Encryptor::EncryptString(plaintext, &ciphertext));
84 ASSERT_TRUE(Encryptor::DecryptString(ciphertext, &result));
89 ASSERT_TRUE(Encryptor::EncryptString(plaintext, &ciphertext));
90 ASSERT_TRUE(Encryptor::DecryptString(ciphertext, &result));
95 ASSERT_TRUE(Encryptor::EncryptString(plaintext, &ciphertext));
96 ASSERT_TRUE(Encryptor::DecryptString(ciphertext, &result));
103 std::string ciphertext;
106 ASSERT_TRUE(Encryptor::EncryptString(plaintext, &ciphertext));
107 ASSERT_TRUE(Encryptor::DecryptString(ciphertext, &result));
109 EXPECT_TRUE(ciphertext.empty() || plaintext != ciphertext);
114 ASSERT_TRUE(Encryptor::EncryptString(plaintext, &ciphertext));
115 ASSERT_TRUE(Encryptor::DecryptString(ciphertext, &result));
116 EXPECT_NE(plaintext, ciphertext);
121 ASSERT_TRUE(Encryptor::EncryptString(plaintext, &ciphertext));
122 ASSERT_TRUE(Encryptor::DecryptString(ciphertext, &result));
123 EXPECT_NE(plaintext, ciphertext);
130 std::string ciphertext;
132 // Test a simple string, messing with ciphertext prior to decrypting.
134 ASSERT_TRUE(Encryptor::EncryptString(plaintext, &ciphertext));
135 EXPECT_NE(plaintext, ciphertext);
136 ASSERT_LT(4UL, ciphertext.size());
137 ciphertext[3] = ciphertext[3] + 1;
138 EXPECT_FALSE(Encryptor::DecryptString(ciphertext, &result));