Dash Core  0.12.2.1
P2P Digital Currency
crypter.h File Reference
#include "keystore.h"
#include "serialize.h"
#include "support/allocators/secure.h"

Go to the source code of this file.

Classes

class  CMasterKey
 
class  CCrypter
 
class  CCryptoKeyStore
 

Typedefs

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

Functions

bool EncryptAES256 (const SecureString &sKey, const SecureString &sPlaintext, const std::string &sIV, std::string &sCiphertext)
 
bool DecryptAES256 (const SecureString &sKey, const std::string &sCiphertext, const std::string &sIV, SecureString &sPlaintext)
 

Variables

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

Typedef Documentation

◆ CKeyingMaterial

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

Definition at line 67 of file crypter.h.

Function Documentation

◆ DecryptAES256()

bool DecryptAES256 ( const SecureString sKey,
const std::string &  sCiphertext,
const std::string &  sIV,
SecureString sPlaintext 
)

Definition at line 174 of file crypter.cpp.

Referenced by CKeePassIntegrator::CKeePassResponse::decrypt().

◆ EncryptAES256()

bool EncryptAES256 ( const SecureString sKey,
const SecureString sPlaintext,
const std::string &  sIV,
std::string &  sCiphertext 
)

Definition at line 125 of file crypter.cpp.

Referenced by CKeePassIntegrator::CKeePassRequest::addStrParameter().

Variable Documentation

◆ WALLET_CRYPTO_KEY_SIZE

const unsigned int WALLET_CRYPTO_KEY_SIZE = 32

◆ WALLET_CRYPTO_SALT_SIZE

const unsigned int WALLET_CRYPTO_SALT_SIZE = 8

Definition at line 15 of file crypter.h.

Referenced by CWallet::EncryptWallet(), and CCrypter::SetKeyFromPassphrase().