#include <test/test_fabcoin.h>
#include <utilstrencodings.h>
#include <wallet/crypter.h>
#include <vector>
#include <boost/test/unit_test.hpp>
#include <openssl/aes.h>
#include <openssl/evp.h>
Go to the source code of this file.
|
bool | OldSetKeyFromPassphrase (const SecureString &strKeyData, const std::vector< unsigned char > &chSalt, const unsigned int nRounds, const unsigned int nDerivationMethod, unsigned char *chKey, unsigned char *chIV) |
|
bool | OldEncrypt (const CKeyingMaterial &vchPlaintext, std::vector< unsigned char > &vchCiphertext, const unsigned char chKey[32], const unsigned char chIV[16]) |
|
bool | OldDecrypt (const std::vector< unsigned char > &vchCiphertext, CKeyingMaterial &vchPlaintext, const unsigned char chKey[32], const unsigned char chIV[16]) |
|
| BOOST_AUTO_TEST_CASE (passphrase) |
|
| BOOST_AUTO_TEST_CASE (encrypt) |
|
| BOOST_AUTO_TEST_CASE (decrypt) |
|
BOOST_AUTO_TEST_CASE |
( |
passphrase |
| ) |
|
BOOST_AUTO_TEST_CASE |
( |
encrypt |
| ) |
|
BOOST_AUTO_TEST_CASE |
( |
decrypt |
| ) |
|
bool OldDecrypt |
( |
const std::vector< unsigned char > & |
vchCiphertext, |
|
|
CKeyingMaterial & |
vchPlaintext, |
|
|
const unsigned char |
chKey[32], |
|
|
const unsigned char |
chIV[16] |
|
) |
| |
bool OldEncrypt |
( |
const CKeyingMaterial & |
vchPlaintext, |
|
|
std::vector< unsigned char > & |
vchCiphertext, |
|
|
const unsigned char |
chKey[32], |
|
|
const unsigned char |
chIV[16] |
|
) |
| |
bool OldSetKeyFromPassphrase |
( |
const SecureString & |
strKeyData, |
|
|
const std::vector< unsigned char > & |
chSalt, |
|
|
const unsigned int |
nRounds, |
|
|
const unsigned int |
nDerivationMethod, |
|
|
unsigned char * |
chKey, |
|
|
unsigned char * |
chIV |
|
) |
| |