Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

crypter.h File Reference
#include <keystore.h>
#include <serialize.h>
#include <support/allocators/secure.h>
#include <atomic>
+ 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
 Private key encryption is done based on a CMasterKey, which holds a salt and random encryption key. More...
 
class  CCrypter
 Encryption/decryption context with key information. More...
 
class  CCryptoKeyStore
 Keystore which keeps the private keys encrypted. More...
 

Namespaces

 wallet_crypto
 

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
 
const unsigned int WALLET_CRYPTO_IV_SIZE = 16
 

Typedef Documentation

◆ CKeyingMaterial

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

Definition at line 68 of file crypter.h.

Function Documentation

◆ DecryptAES256()

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

◆ EncryptAES256()

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

Variable Documentation

◆ WALLET_CRYPTO_IV_SIZE

const unsigned int WALLET_CRYPTO_IV_SIZE = 16

◆ WALLET_CRYPTO_KEY_SIZE

const unsigned int WALLET_CRYPTO_KEY_SIZE = 32

◆ WALLET_CRYPTO_SALT_SIZE

const unsigned int WALLET_CRYPTO_SALT_SIZE = 8
Released under the MIT license