Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <wallet/crypter.h>
#include <crypto/aes.h>
#include <crypto/sha512.h>
#include <script/script.h>
#include <script/standard.h>
#include <util.h>
#include <string>
#include <vector>
Go to the source code of this file.
Functions | |
static bool | EncryptSecret (const CKeyingMaterial &vMasterKey, const CKeyingMaterial &vchPlaintext, const uint256 &nIV, std::vector< unsigned char > &vchCiphertext) |
bool | EncryptAES256 (const SecureString &sKey, const SecureString &sPlaintext, const std::string &sIV, std::string &sCiphertext) |
static bool | DecryptSecret (const CKeyingMaterial &vMasterKey, const std::vector< unsigned char > &vchCiphertext, const uint256 &nIV, CKeyingMaterial &vchPlaintext) |
bool | DecryptAES256 (const SecureString &sKey, const std::string &sCiphertext, const std::string &sIV, SecureString &sPlaintext) |
static bool | DecryptKey (const CKeyingMaterial &vMasterKey, const std::vector< unsigned char > &vchCryptedSecret, const CPubKey &vchPubKey, CKey &key) |
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().
◆ DecryptKey()
|
static |
Definition at line 177 of file crypter.cpp.
References DecryptSecret(), CPubKey::GetHash(), CPubKey::IsCompressed(), CKey::Set(), and CKey::VerifyPubKey().
Referenced by CCryptoKeyStore::GetKey(), and CCryptoKeyStore::Unlock().
◆ DecryptSecret()
|
static |
Definition at line 144 of file crypter.cpp.
References CCrypter::Decrypt(), memcpy(), CCrypter::SetKey(), and WALLET_CRYPTO_IV_SIZE.
Referenced by CCryptoKeyStore::DecryptHDChain(), and DecryptKey().
◆ 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().
◆ EncryptSecret()
|
static |
Definition at line 111 of file crypter.cpp.
References CCrypter::Encrypt(), memcpy(), CCrypter::SetKey(), and WALLET_CRYPTO_IV_SIZE.
Referenced by CCryptoKeyStore::AddKeyPubKey(), CCryptoKeyStore::EncryptHDChain(), and CCryptoKeyStore::EncryptKeys().