Lines Matching refs:encrypted
70 std::string encrypted =
75 EXPECT_TRUE(nigori.Decrypt(encrypted, &plaintext));
87 std::string encrypted;
88 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted));
91 EXPECT_TRUE(nigori.Decrypt(encrypted, &decrypted));
102 std::string encrypted;
103 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted));
106 encrypted[0] = (encrypted[0] == 'a' ? 'b' : 'a');
109 EXPECT_TRUE(nigori.Decrypt(encrypted, &decrypted));
120 std::string encrypted;
121 EXPECT_TRUE(nigori.Encrypt(plaintext, &encrypted));
124 encrypted[Nigori::kIvSize + 10] =
125 (encrypted[Nigori::kIvSize + 10] == 'a' ? 'b' : 'a');
128 EXPECT_FALSE(nigori.Decrypt(encrypted, &decrypted));