Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

crypter.cpp File Reference
#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>
+ Include dependency graph for crypter.cpp:

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 
)

◆ DecryptKey()

static bool DecryptKey ( const CKeyingMaterial vMasterKey,
const std::vector< unsigned char > &  vchCryptedSecret,
const CPubKey vchPubKey,
CKey key 
)
static

◆ DecryptSecret()

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

◆ EncryptAES256()

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

◆ EncryptSecret()

static bool EncryptSecret ( const CKeyingMaterial vMasterKey,
const CKeyingMaterial vchPlaintext,
const uint256 nIV,
std::vector< unsigned char > &  vchCiphertext 
)
static
Released under the MIT license