From 5d8e80032416565df10efd2f3060b3891ac5a337 Mon Sep 17 00:00:00 2001 From: subtly Date: Thu, 5 Mar 2015 03:07:14 +0100 Subject: [PATCH] authenticated capability (hello) and handshake authentication --- rlpx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rlpx.cpp b/rlpx.cpp index d845911f4..1cdde4320 100644 --- a/rlpx.cpp +++ b/rlpx.cpp @@ -141,7 +141,7 @@ BOOST_AUTO_TEST_CASE(test_secrets_cpp_vectors) bytes macSecret(32); outRef.copyTo(&macSecret); BOOST_REQUIRE(macSecret == fromHex("2ec149072353d54437422837c886b0538a9206e6c559f6b4a55f65a866867723")); - m_macEnc.SetKey(outRef.data(), h256::size); + m_macEnc.SetKey(outRef.data(), h128::size); // Initiator egress-mac: sha3(mac-secret^recipient-nonce || auth-sent-init) // ingress-mac: sha3(mac-secret^initiator-nonce || auth-recvd-ack)