Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Functions
rlpx.cpp File Reference
#include <libdevcore/Guards.h>
#include <boost/asio.hpp>
#include <boost/test/unit_test.hpp>
#include <cryptopp/aes.h>
#include <cryptopp/hmac.h>
#include <cryptopp/keccak.h>
#include <cryptopp/modes.h>
#include <cryptopp/sha.h>
#include <libdevcore/Common.h>
#include <libdevcore/RLP.h>
#include <libdevcore/Log.h>
#include <libdevcore/SHA3.h>
#include <libdevcrypto/ECDHE.h>
#include <libdevcrypto/CryptoPP.h>
#include <libp2p/RLPxHandshake.h>
#include <libp2p/RLPXFrameWriter.h>
#include <libp2p/RLPXFrameReader.h>
#include <test/libtesteth/TestHelper.h>
Include dependency graph for rlpx.cpp:

Go to the source code of this file.

Classes

struct  RLPXTestFixture
 

Functions

 BOOST_AUTO_TEST_CASE (test_secrets_cpp_vectors)
 
 BOOST_AUTO_TEST_CASE (test_secrets_from_go)
 
 BOOST_AUTO_TEST_CASE (ecies_interop_test_primitives)
 
 BOOST_AUTO_TEST_CASE (segmentedPacketFlush)
 
 BOOST_AUTO_TEST_CASE (coalescedPacketsPadded)
 
 BOOST_AUTO_TEST_CASE (singleFramePacketFlush)
 
 BOOST_AUTO_TEST_CASE (multiProtocol)
 
 BOOST_AUTO_TEST_CASE (oddSizedMessages)
 
bytes generatePseudorandomPacket (h256 const &_h)
 
 BOOST_AUTO_TEST_CASE (pseudorandom)
 
 BOOST_AUTO_TEST_CASE (randomizedMultiProtocol)
 

Function Documentation

BOOST_AUTO_TEST_CASE ( test_secrets_cpp_vectors  )

Definition at line 57 of file rlpx.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( test_secrets_from_go  )

test macs of frame headers

Definition at line 192 of file rlpx.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ecies_interop_test_primitives  )

Definition at line 382 of file rlpx.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( segmentedPacketFlush  )

Test writing a 64byte RLPStream and drain with frame size that forces packet to be pieced into 4 frames. (Minimum frame size has room for 16 bytes of payload)

Definition at line 467 of file rlpx.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( coalescedPacketsPadded  )

Test writing four 32 byte RLPStream packets such that a single 1KB frame will incldue all four packets.

Definition at line 541 of file rlpx.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( singleFramePacketFlush  )

Definition at line 599 of file rlpx.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( multiProtocol  )

Test writing four 32 byte RLPStream packets with different protocol ID.

Definition at line 645 of file rlpx.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( oddSizedMessages  )

Definition at line 741 of file rlpx.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( pseudorandom  )

Definition at line 817 of file rlpx.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( randomizedMultiProtocol  )

Definition at line 882 of file rlpx.cpp.

Here is the call graph for this function:

bytes generatePseudorandomPacket ( h256 const &  _h)

Definition at line 801 of file rlpx.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: