Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Functions
crypto.cpp File Reference
#include <libdevcore/Guards.h>
#include <secp256k1.h>
#include <cryptopp/keccak.h>
#include <cryptopp/pwdbased.h>
#include <cryptopp/sha.h>
#include <cryptopp/modes.h>
#include <cryptopp/eccrypto.h>
#include <cryptopp/osrng.h>
#include <cryptopp/oids.h>
#include <cryptopp/dsa.h>
#include <libdevcore/Common.h>
#include <libdevcore/RLP.h>
#include <libdevcore/Log.h>
#include <boost/test/unit_test.hpp>
#include <libdevcore/SHA3.h>
#include <libdevcrypto/ECDHE.h>
#include <libdevcrypto/CryptoPP.h>
#include <test/libtesteth/TestHelper.h>
Include dependency graph for crypto.cpp:

Go to the source code of this file.

Classes

struct  DevcryptoTestFixture
 

Functions

 BOOST_AUTO_TEST_CASE (sha3general)
 
 BOOST_AUTO_TEST_CASE (emptySHA3Types)
 
 BOOST_AUTO_TEST_CASE (pubkeyOfZero)
 
 BOOST_AUTO_TEST_CASE (KeyPairMix)
 
 BOOST_AUTO_TEST_CASE (keypairs)
 
 BOOST_AUTO_TEST_CASE (KeyPairVerifySecret)
 
 BOOST_AUTO_TEST_CASE (SignAndRecover)
 
 BOOST_AUTO_TEST_CASE (SignAndRecoverLoop)
 
 BOOST_AUTO_TEST_CASE (cryptopp_patch)
 
 BOOST_AUTO_TEST_CASE (verify_secert)
 
 BOOST_AUTO_TEST_CASE (common_encrypt_decrypt)
 
 BOOST_AUTO_TEST_CASE (sha3_norestart)
 
 BOOST_AUTO_TEST_CASE (ecies_kdf)
 
 BOOST_AUTO_TEST_CASE (ecies_standard)
 
 BOOST_AUTO_TEST_CASE (ecies_sharedMacData)
 
 BOOST_AUTO_TEST_CASE (ecies_eckeypair)
 
 BOOST_AUTO_TEST_CASE (ecdhCryptopp)
 
 BOOST_AUTO_TEST_CASE (ecdhe)
 
 BOOST_AUTO_TEST_CASE (ecdhAgree)
 
 BOOST_AUTO_TEST_CASE (handshakeNew)
 
 BOOST_AUTO_TEST_CASE (ecies_aes128_ctr_unaligned)
 
 BOOST_AUTO_TEST_CASE (ecies_aes128_ctr)
 
 BOOST_AUTO_TEST_CASE (cryptopp_aes128_ctr)
 
 BOOST_AUTO_TEST_CASE (cryptopp_aes128_cbc)
 
 BOOST_AUTO_TEST_CASE (recoverVgt3)
 

Detailed Description

Author
Alex Leverington nesse.nosp@m.nce@.nosp@m.gmail.nosp@m..com
Gav Wood i@gav.nosp@m.wood.nosp@m..com
Date
2014 Crypto test functions.
Author
Alex Leverington nesse.nosp@m.nce@.nosp@m.gmail.nosp@m..com
Date
2015 RLPx test functions.

Definition in file crypto.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( sha3general  )

Definition at line 76 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( emptySHA3Types  )

Definition at line 82 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( pubkeyOfZero  )

Definition at line 91 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( KeyPairMix  )

Definition at line 97 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( keypairs  )

Definition at line 106 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( KeyPairVerifySecret  )

Definition at line 121 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( SignAndRecover  )

Definition at line 129 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( SignAndRecoverLoop  )

Definition at line 144 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( cryptopp_patch  )

Definition at line 159 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( verify_secert  )

Definition at line 167 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( common_encrypt_decrypt  )

Definition at line 176 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( sha3_norestart  )

Definition at line 194 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ecies_kdf  )

Definition at line 225 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ecies_standard  )

Definition at line 254 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ecies_sharedMacData  )

Definition at line 270 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ecies_eckeypair  )

Definition at line 296 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ecdhCryptopp  )

Definition at line 311 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ecdhe  )

Definition at line 359 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ecdhAgree  )

Definition at line 378 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( handshakeNew  )

Alice (after receiving ack)

Bob (after sending ack)

Definition at line 389 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ecies_aes128_ctr_unaligned  )

Definition at line 582 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ecies_aes128_ctr  )

Definition at line 604 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( cryptopp_aes128_ctr  )

Definition at line 618 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( cryptopp_aes128_cbc  )

Definition at line 693 of file crypto.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( recoverVgt3  )

Definition at line 733 of file crypto.cpp.

Here is the call graph for this function: