Anoncoin  0.9.4
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CCrypter Class Reference

Encryption/decryption context with key information. More...

#include <crypter.h>

Public Member Functions

bool SetKeyFromPassphrase (const SecureString &strKeyData, const std::vector< unsigned char > &chSalt, const unsigned int nRounds, const unsigned int nDerivationMethod)
 
bool Encrypt (const CKeyingMaterial &vchPlaintext, std::vector< unsigned char > &vchCiphertext)
 
bool Decrypt (const std::vector< unsigned char > &vchCiphertext, CKeyingMaterial &vchPlaintext)
 
bool SetKey (const CKeyingMaterial &chNewKey, const std::vector< unsigned char > &chNewIV)
 
void CleanKey ()
 
 CCrypter ()
 
 ~CCrypter ()
 

Private Attributes

unsigned char chKey [WALLET_CRYPTO_KEY_SIZE]
 
unsigned char chIV [WALLET_CRYPTO_KEY_SIZE]
 
bool fKeySet
 

Detailed Description

Encryption/decryption context with key information.

Definition at line 68 of file crypter.h.

Constructor & Destructor Documentation

CCrypter::CCrypter ( )
inline

Definition at line 88 of file crypter.h.

Here is the call graph for this function:

CCrypter::~CCrypter ( )
inline

Definition at line 99 of file crypter.h.

Here is the call graph for this function:

Member Function Documentation

void CCrypter::CleanKey ( )
inline

Definition at line 81 of file crypter.h.

Here is the caller graph for this function:

bool CCrypter::Decrypt ( const std::vector< unsigned char > &  vchCiphertext,
CKeyingMaterial vchPlaintext 
)

Definition at line 76 of file crypter.cpp.

Here is the caller graph for this function:

bool CCrypter::Encrypt ( const CKeyingMaterial vchPlaintext,
std::vector< unsigned char > &  vchCiphertext 
)

Definition at line 49 of file crypter.cpp.

Here is the caller graph for this function:

bool CCrypter::SetKey ( const CKeyingMaterial chNewKey,
const std::vector< unsigned char > &  chNewIV 
)

Definition at line 37 of file crypter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CCrypter::SetKeyFromPassphrase ( const SecureString strKeyData,
const std::vector< unsigned char > &  chSalt,
const unsigned int  nRounds,
const unsigned int  nDerivationMethod 
)

Definition at line 16 of file crypter.cpp.

Here is the caller graph for this function:

Member Data Documentation

unsigned char CCrypter::chIV[WALLET_CRYPTO_KEY_SIZE]
private

Definition at line 72 of file crypter.h.

unsigned char CCrypter::chKey[WALLET_CRYPTO_KEY_SIZE]
private

Definition at line 71 of file crypter.h.

bool CCrypter::fKeySet
private

Definition at line 73 of file crypter.h.


The documentation for this class was generated from the following files: