Anoncoin  0.9.4
P2P Digital Currency
Classes | Typedefs | Functions | Variables
crypter.h File Reference
#include "allocators.h"
#include "serialize.h"
#include "keystore.h"
Include dependency graph for crypter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CMasterKey
 Master key for wallet encryption. More...
 
class  CCrypter
 Encryption/decryption context with key information. More...
 
class  CCryptoKeyStore
 Keystore which keeps the private keys encrypted. More...
 

Typedefs

typedef std::vector< unsigned char, secure_allocator< unsigned char > > CKeyingMaterial
 

Functions

bool EncryptSecret (const CKeyingMaterial &vMasterKey, const CKeyingMaterial &vchPlaintext, const uint256 &nIV, std::vector< unsigned char > &vchCiphertext)
 
bool DecryptSecret (const CKeyingMaterial &vMasterKey, const std::vector< unsigned char > &vchCiphertext, const uint256 &nIV, CKeyingMaterial &vchPlaintext)
 

Variables

const unsigned int WALLET_CRYPTO_KEY_SIZE = 32
 
const unsigned int WALLET_CRYPTO_SALT_SIZE = 8
 

Typedef Documentation

typedef std::vector<unsigned char, secure_allocator<unsigned char> > CKeyingMaterial

Definition at line 65 of file crypter.h.

Function Documentation

bool DecryptSecret ( const CKeyingMaterial vMasterKey,
const std::vector< unsigned char > &  vchCiphertext,
const uint256 nIV,
CKeyingMaterial vchPlaintext 
)

Definition at line 114 of file crypter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool EncryptSecret ( const CKeyingMaterial vMasterKey,
const CKeyingMaterial vchPlaintext,
const uint256 nIV,
std::vector< unsigned char > &  vchCiphertext 
)

Definition at line 104 of file crypter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const unsigned int WALLET_CRYPTO_KEY_SIZE = 32

Definition at line 15 of file crypter.h.

const unsigned int WALLET_CRYPTO_SALT_SIZE = 8

Definition at line 16 of file crypter.h.