Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Namespaces | Functions | Variables
crypto_tests.cpp File Reference
#include <crypto/aes.h>
#include <crypto/chacha20.h>
#include <crypto/chacha20poly1305.h>
#include <crypto/hkdf_sha256_32.h>
#include <crypto/hmac_sha256.h>
#include <crypto/hmac_sha512.h>
#include <crypto/poly1305.h>
#include <crypto/ripemd160.h>
#include <crypto/sha1.h>
#include <crypto/sha256.h>
#include <crypto/sha3.h>
#include <crypto/sha512.h>
#include <crypto/muhash.h>
#include <random.h>
#include <streams.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <util/strencodings.h>
#include <algorithm>
#include <vector>
#include <boost/test/unit_test.hpp>
Include dependency graph for crypto_tests.cpp:

Go to the source code of this file.

Classes

struct  crypto_tests::CryptoTest
 

Namespaces

namespace  crypto_tests
 

Functions

static std::string LongTestString ()
 
 BOOST_AUTO_TEST_CASE (ripemd160_testvectors)
 
 BOOST_AUTO_TEST_CASE (sha1_testvectors)
 
 BOOST_AUTO_TEST_CASE (sha256_testvectors)
 
 BOOST_AUTO_TEST_CASE (sha512_testvectors)
 
 BOOST_AUTO_TEST_CASE (hmac_sha256_testvectors)
 
 BOOST_AUTO_TEST_CASE (hmac_sha512_testvectors)
 
 BOOST_AUTO_TEST_CASE (aes_testvectors)
 
 BOOST_AUTO_TEST_CASE (aes_cbc_testvectors)
 
 BOOST_AUTO_TEST_CASE (chacha20_testvector)
 
 BOOST_AUTO_TEST_CASE (chacha20_midblock)
 
 BOOST_AUTO_TEST_CASE (poly1305_testvector)
 
 BOOST_AUTO_TEST_CASE (chacha20poly1305_testvectors)
 
 BOOST_AUTO_TEST_CASE (hkdf_hmac_sha256_l32_tests)
 
 BOOST_AUTO_TEST_CASE (sha256d64)
 
 BOOST_AUTO_TEST_CASE (keccak_tests)
 
 BOOST_AUTO_TEST_CASE (sha3_256_tests)
 
static MuHash3072 FromInt (unsigned char i)
 
 BOOST_AUTO_TEST_CASE (muhash_tests)
 

Variables

const std::string test1 = LongTestString()
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/17]

BOOST_AUTO_TEST_CASE ( aes_cbc_testvectors  )

Definition at line 601 of file crypto_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/17]

BOOST_AUTO_TEST_CASE ( aes_testvectors  )

Definition at line 590 of file crypto_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/17]

BOOST_AUTO_TEST_CASE ( chacha20_midblock  )

Definition at line 833 of file crypto_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/17]

BOOST_AUTO_TEST_CASE ( chacha20_testvector  )

Definition at line 632 of file crypto_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/17]

BOOST_AUTO_TEST_CASE ( chacha20poly1305_testvectors  )

Definition at line 972 of file crypto_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/17]

BOOST_AUTO_TEST_CASE ( hkdf_hmac_sha256_l32_tests  )

Definition at line 1053 of file crypto_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/17]

BOOST_AUTO_TEST_CASE ( hmac_sha256_testvectors  )

Definition at line 469 of file crypto_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [8/17]

BOOST_AUTO_TEST_CASE ( hmac_sha512_testvectors  )

Definition at line 522 of file crypto_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [9/17]

BOOST_AUTO_TEST_CASE ( keccak_tests  )

Definition at line 1111 of file crypto_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/17]

BOOST_AUTO_TEST_CASE ( muhash_tests  )

Definition at line 1200 of file crypto_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/17]

BOOST_AUTO_TEST_CASE ( poly1305_testvector  )

Definition at line 851 of file crypto_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/17]

BOOST_AUTO_TEST_CASE ( ripemd160_testvectors  )

Definition at line 378 of file crypto_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [13/17]

BOOST_AUTO_TEST_CASE ( sha1_testvectors  )

Definition at line 394 of file crypto_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [14/17]

BOOST_AUTO_TEST_CASE ( sha256_testvectors  )

Definition at line 410 of file crypto_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [15/17]

BOOST_AUTO_TEST_CASE ( sha256d64  )

Definition at line 1073 of file crypto_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [16/17]

BOOST_AUTO_TEST_CASE ( sha3_256_tests  )

Definition at line 1131 of file crypto_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [17/17]

BOOST_AUTO_TEST_CASE ( sha512_testvectors  )

Definition at line 432 of file crypto_tests.cpp.

◆ FromInt()

static MuHash3072 FromInt ( unsigned char  i)
static

Definition at line 1195 of file crypto_tests.cpp.

Here is the caller graph for this function:

◆ LongTestString()

static std::string LongTestString ( )
static

Definition at line 361 of file crypto_tests.cpp.

Variable Documentation

◆ test1

const std::string test1 = LongTestString()

Definition at line 374 of file crypto_tests.cpp.