Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

crypto_tests.cpp File Reference
#include <test/test_dash.h>
#include <utilstrencodings.h>
#include <wallet/crypter.h>
#include <vector>
#include <boost/test/unit_test.hpp>
+ Include dependency graph for crypto_tests.cpp:

Go to the source code of this file.

Classes

class  TestCrypter
 

Functions

void TestAES256CBC (const std::string &hexkey, const std::string &hexiv, const std::string &hexin, const std::string &hexout)
 
 BOOST_AUTO_TEST_CASE (passphrase)
 
 BOOST_AUTO_TEST_CASE (encrypt)
 
 BOOST_AUTO_TEST_CASE (decrypt)
 
 BOOST_AUTO_TEST_CASE (aes_256_cbc_testvectors)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( passphrase  )

◆ BOOST_AUTO_TEST_CASE() [2/4]

◆ BOOST_AUTO_TEST_CASE() [3/4]

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( aes_256_cbc_testvectors  )

Definition at line 139 of file crypto_tests.cpp.

References TestAES256CBC().

◆ TestAES256CBC()

void TestAES256CBC ( const std::string &  hexkey,
const std::string &  hexiv,
const std::string &  hexin,
const std::string &  hexout 
)

Definition at line 15 of file crypto_tests.cpp.

References DecryptAES256(), EncryptAES256(), HexStr(), and ParseHex().

Referenced by BOOST_AUTO_TEST_CASE().

Released under the MIT license