Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <keystore.h>
#include <serialize.h>
#include <support/allocators/secure.h>
#include <atomic>
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 |
Function Documentation
◆ DecryptAES256()
bool DecryptAES256 | ( | const SecureString & | sKey, |
const std::string & | sCiphertext, | ||
const std::string & | sIV, | ||
SecureString & | sPlaintext | ||
) |
Definition at line 155 of file crypter.cpp.
References AES_BLOCKSIZE, AES256CBCDecrypt::Decrypt(), and LogPrintf.
Referenced by CKeePassIntegrator::CKeePassResponse::decrypt(), and TestAES256CBC().
◆ EncryptAES256()
bool EncryptAES256 | ( | const SecureString & | sKey, |
const SecureString & | sPlaintext, | ||
const std::string & | sIV, | ||
std::string & | sCiphertext | ||
) |
Definition at line 123 of file crypter.cpp.
References AES_BLOCKSIZE, AES256CBCEncrypt::Encrypt(), and LogPrintf.
Referenced by CKeePassIntegrator::CKeePassRequest::addStrParameter(), and TestAES256CBC().
Variable Documentation
◆ WALLET_CRYPTO_IV_SIZE
const unsigned int WALLET_CRYPTO_IV_SIZE = 16 |
Definition at line 16 of file crypter.h.
Referenced by CCrypter::BytesToKeySHA512AES(), CCrypter::CCrypter(), DecryptSecret(), EncryptSecret(), and CCrypter::SetKey().
◆ WALLET_CRYPTO_KEY_SIZE
const unsigned int WALLET_CRYPTO_KEY_SIZE = 32 |
Definition at line 14 of file crypter.h.
Referenced by CCrypter::BytesToKeySHA512AES(), CCrypter::CCrypter(), CWallet::EncryptWallet(), CCrypter::SetKey(), and CCrypter::SetKeyFromPassphrase().
◆ WALLET_CRYPTO_SALT_SIZE
const unsigned int WALLET_CRYPTO_SALT_SIZE = 8 |
Definition at line 15 of file crypter.h.
Referenced by BOOST_AUTO_TEST_CASE(), CWallet::EncryptWallet(), and CCrypter::SetKeyFromPassphrase().