From 1c53a9107c65ee650368c003a36008f5f448349e Mon Sep 17 00:00:00 2001 From: subtly Date: Mon, 9 Mar 2015 18:14:49 +0100 Subject: bugfix and doc clarification. fix test. --- crypto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto.cpp b/crypto.cpp index 2d7121f8..dbbc2dfa 100644 --- a/crypto.cpp +++ b/crypto.cpp @@ -299,7 +299,7 @@ BOOST_AUTO_TEST_CASE(ecies_standard) s_secp256k1.encryptECIES(k.pub(), b); BOOST_REQUIRE(b != asBytes(original)); - BOOST_REQUIRE(b.size() > 0 && ((u128)h128(b)) > 0); + BOOST_REQUIRE(b.size() > 0 && b[0] == 0x04); s_secp256k1.decryptECIES(k.sec(), b); BOOST_REQUIRE(bytesConstRef(&b).cropped(0, original.size()).toBytes() == asBytes(original)); -- cgit v1.2.3