Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Classes | Typedefs | Functions | Variables
crypter.h File Reference
#include "allocators.h"
#include "key.h"
#include "serialize.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...
 

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 61 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 113 of file crypter.cpp.

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

Definition at line 103 of file crypter.cpp.

Variable Documentation

const unsigned int WALLET_CRYPTO_KEY_SIZE = 32

Definition at line 11 of file crypter.h.

const unsigned int WALLET_CRYPTO_SALT_SIZE = 8

Definition at line 12 of file crypter.h.