aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_ecies.cpp
diff options
context:
space:
mode:
authorPhilipp Weber <[email protected]>2016-05-23 14:39:18 +0200
committerPhilipp Weber <[email protected]>2016-05-23 14:39:18 +0200
commitc951ad50c6af7d93c16f53dffb69b0be23f1c647 (patch)
treebfb61e18c45c3260aab5f8cc2d8f875edb772ec1 /src/tests/test_ecies.cpp
parentfac01ba123852c66065027522494a4f9efda562f (diff)
ecies review change: add missing ciphertext to test vectors
Diffstat (limited to 'src/tests/test_ecies.cpp')
-rw-r--r--src/tests/test_ecies.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tests/test_ecies.cpp b/src/tests/test_ecies.cpp
index 0c6a31877..4f24c3350 100644
--- a/src/tests/test_ecies.cpp
+++ b/src/tests/test_ecies.cpp
@@ -71,10 +71,7 @@ void check_encrypt_decrypt(Test::Result& result, const Botan::ECDH_PrivateKey& p
try
{
const std::vector<byte> encrypted = ecies_enc.encrypt(plaintext, Test::rng());
- if(!ciphertext.empty())
- {
- result.test_eq("encrypted data", encrypted, ciphertext);
- }
+ result.test_eq("encrypted data", encrypted, ciphertext);
const Botan::secure_vector<byte> decrypted = ecies_dec.decrypt(encrypted);
result.test_eq("decrypted data equals plaintext", decrypted, plaintext);
}