PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Functions
crypto_tests.cpp File Reference
#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>
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() [1/3]

BOOST_AUTO_TEST_CASE ( decrypt  )

Definition at line 209 of file crypto_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( encrypt  )

Definition at line 194 of file crypto_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( passphrase  )

Definition at line 178 of file crypto_tests.cpp.

Here is the call graph for this function:

◆ OldDecrypt()

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

Definition at line 61 of file crypto_tests.cpp.

Here is the caller graph for this function:

◆ OldEncrypt()

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

Definition at line 37 of file crypto_tests.cpp.

Here is the caller graph for this function:

◆ 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 
)

Definition at line 18 of file crypto_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: