mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
authenticated capability (hello) and handshake authentication
This commit is contained in:
parent
7ce91422ff
commit
5d8e800324
2
rlpx.cpp
2
rlpx.cpp
@ -141,7 +141,7 @@ BOOST_AUTO_TEST_CASE(test_secrets_cpp_vectors)
|
|||||||
bytes macSecret(32);
|
bytes macSecret(32);
|
||||||
outRef.copyTo(&macSecret);
|
outRef.copyTo(&macSecret);
|
||||||
BOOST_REQUIRE(macSecret == fromHex("2ec149072353d54437422837c886b0538a9206e6c559f6b4a55f65a866867723"));
|
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)
|
// Initiator egress-mac: sha3(mac-secret^recipient-nonce || auth-sent-init)
|
||||||
// ingress-mac: sha3(mac-secret^initiator-nonce || auth-recvd-ack)
|
// ingress-mac: sha3(mac-secret^initiator-nonce || auth-recvd-ack)
|
||||||
|
Loading…
Reference in New Issue
Block a user