From 587e544063da2f14819f15d2a55859305fa80e00 Mon Sep 17 00:00:00 2001 From: subtly Date: Sun, 8 Mar 2015 13:45:23 +0100 Subject: [PATCH] fix kdf test --- crypto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto.cpp b/crypto.cpp index c20b4c51f..a844cbf09 100644 --- a/crypto.cpp +++ b/crypto.cpp @@ -267,14 +267,14 @@ BOOST_AUTO_TEST_CASE(ecies_kdf) // nonce Secret z1; ecdh::agree(local.sec(), remote.pub(), z1); - auto key1 = s_secp256k1.eciesKDF(z1, bytes(), 512); + auto key1 = s_secp256k1.eciesKDF(z1, bytes(), 64); bytesConstRef eKey1 = bytesConstRef(&key1).cropped(0, 32); bytesRef mKey1 = bytesRef(&key1).cropped(32, 32); sha3(mKey1, mKey1); Secret z2; ecdh::agree(remote.sec(), local.pub(), z2); - auto key2 = s_secp256k1.eciesKDF(z2, bytes(), 512); + auto key2 = s_secp256k1.eciesKDF(z2, bytes(), 64); bytesConstRef eKey2 = bytesConstRef(&key2).cropped(0, 32); bytesRef mKey2 = bytesRef(&key2).cropped(32, 32); sha3(mKey2, mKey2);