aboutsummaryrefslogtreecommitdiffstats
path: root/rlpx.cpp
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2015-03-05 10:07:14 +0800
committersubtly <subtly@users.noreply.github.com>2015-03-05 10:07:14 +0800
commit5d8e80032416565df10efd2f3060b3891ac5a337 (patch)
tree04480caf268f1dffd07e5e7d9dcbbc41b5b669bb /rlpx.cpp
parent7ce91422ff23bc43460ae59b164528e72520b6ef (diff)
downloaddexon-solidity-5d8e80032416565df10efd2f3060b3891ac5a337.tar
dexon-solidity-5d8e80032416565df10efd2f3060b3891ac5a337.tar.gz
dexon-solidity-5d8e80032416565df10efd2f3060b3891ac5a337.tar.bz2
dexon-solidity-5d8e80032416565df10efd2f3060b3891ac5a337.tar.lz
dexon-solidity-5d8e80032416565df10efd2f3060b3891ac5a337.tar.xz
dexon-solidity-5d8e80032416565df10efd2f3060b3891ac5a337.tar.zst
dexon-solidity-5d8e80032416565df10efd2f3060b3891ac5a337.zip
authenticated capability (hello) and handshake authentication
Diffstat (limited to 'rlpx.cpp')
-rw-r--r--rlpx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rlpx.cpp b/rlpx.cpp
index d845911f..1cdde432 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)