Lines Matching refs:decrypted
282 std::string decrypted, expected = GetDecodedDatum(v, "Plaintext");
283 StringSource ss(GetDecodedDatum(v, "Ciphertext"), true, new PK_DecryptorFilter(GlobalRNG(), *decryptor, new StringSink(decrypted)));
284 if (decrypted != expected)
372 std::string decrypted;
373 StringSource dd(encrypted, false, new StreamTransformationFilter(*decryptor, new StringSink(decrypted), StreamTransformationFilter::NO_PADDING));
376 if (decrypted != plaintext)
378 std::cout << "incorrectly decrypted: ";
379 StringSource xx(decrypted, false, new HexEncoder(new FileSink(std::cout)));
416 std::string encrypted, decrypted;
419 AuthenticatedDecryptionFilter df(*asc2, new StringSink(decrypted), macAtBegin ? AuthenticatedDecryptionFilter::MAC_AT_BEGIN : 0);
454 if (test == "Encrypt" && decrypted != plaintext)
456 std::cout << "incorrectly decrypted: ";
457 StringSource xx(decrypted, false, new HexEncoder(new FileSink(std::cout)));