Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Functions
crypto_tests.cpp File Reference
#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>
Include dependency graph for crypto_tests.cpp:

Go to the source code of this file.

Classes

class  TestCrypter
 

Functions

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)
 

Function Documentation

BOOST_AUTO_TEST_CASE ( passphrase  )

Definition at line 185 of file crypto_tests.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( encrypt  )

Definition at line 201 of file crypto_tests.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( decrypt  )

Definition at line 216 of file crypto_tests.cpp.

Here is the call graph for this function:

bool OldDecrypt ( const std::vector< unsigned char > &  vchCiphertext,
CKeyingMaterial vchPlaintext,
const unsigned char  chKey[32],
const unsigned char  chIV[16] 
)

Definition at line 64 of file crypto_tests.cpp.

Here is the caller graph for this function:

bool OldEncrypt ( const CKeyingMaterial vchPlaintext,
std::vector< unsigned char > &  vchCiphertext,
const unsigned char  chKey[32],
const unsigned char  chIV[16] 
)

Definition at line 36 of file crypto_tests.cpp.

Here is the caller graph for this function:

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 
)

Definition at line 17 of file crypto_tests.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: