#include "random.h"
#include "utilstrencodings.h"
#include "test/test_prcycoin.h"
#include "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() [1/3]
| BOOST_AUTO_TEST_CASE |
( |
decrypt |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [2/3]
| BOOST_AUTO_TEST_CASE |
( |
encrypt |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [3/3]
| BOOST_AUTO_TEST_CASE |
( |
passphrase |
| ) |
|
◆ OldDecrypt()
| bool OldDecrypt |
( |
const std::vector< unsigned char > & |
vchCiphertext, |
|
|
CKeyingMaterial & |
vchPlaintext, |
|
|
const unsigned char |
chKey[32], |
|
|
const unsigned char |
chIV[16] |
|
) |
| |
◆ OldEncrypt()
| bool OldEncrypt |
( |
const CKeyingMaterial & |
vchPlaintext, |
|
|
std::vector< unsigned char > & |
vchCiphertext, |
|
|
const unsigned char |
chKey[32], |
|
|
const unsigned char |
chIV[16] |
|
) |
| |
◆ OldSetKeyFromPassphrase()
| 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 |
|
) |
| |