Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <test/test_dash.h>
#include <utilstrencodings.h>
#include <wallet/crypter.h>
#include <vector>
#include <boost/test/unit_test.hpp>
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 | ) |
Definition at line 87 of file crypto_tests.cpp.
References GetRandBytes(), GetRandHash(), ParseHex(), and TestCrypter::TestPassphrase().
◆ BOOST_AUTO_TEST_CASE() [2/4]
BOOST_AUTO_TEST_CASE | ( | encrypt | ) |
Definition at line 103 of file crypto_tests.cpp.
References base_blob< BITS >::begin(), BOOST_CHECK, base_blob< BITS >::end(), GetRandHash(), ParseHex(), CCrypter::SetKeyFromPassphrase(), TestCrypter::TestEncrypt(), and WALLET_CRYPTO_SALT_SIZE.
◆ BOOST_AUTO_TEST_CASE() [3/4]
BOOST_AUTO_TEST_CASE | ( | decrypt | ) |
Definition at line 118 of file crypto_tests.cpp.
References base_blob< BITS >::begin(), BOOST_CHECK, base_blob< BITS >::end(), GetRandHash(), ParseHex(), CCrypter::SetKeyFromPassphrase(), TestCrypter::TestDecrypt(), and WALLET_CRYPTO_SALT_SIZE.
◆ 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().