Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Functions
crypter.cpp File Reference
#include <wallet/crypter.h>
#include <common/system.h>
#include <crypto/aes.h>
#include <crypto/sha512.h>
#include <vector>
Include dependency graph for crypter.cpp:

Go to the source code of this file.

Functions

bool EncryptSecret (const CKeyingMaterial &vMasterKey, const CKeyingMaterial &vchPlaintext, const uint256 &nIV, std::vector< uint8_t > &vchCiphertext)
 
bool DecryptSecret (const CKeyingMaterial &vMasterKey, const std::vector< uint8_t > &vchCiphertext, const uint256 &nIV, CKeyingMaterial &vchPlaintext)
 
bool DecryptKey (const CKeyingMaterial &vMasterKey, const std::vector< uint8_t > &vchCryptedSecret, const CPubKey &vchPubKey, CKey &key)
 

Function Documentation

◆ DecryptKey()

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

Definition at line 146 of file crypter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DecryptSecret()

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

Definition at line 134 of file crypter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EncryptSecret()

bool EncryptSecret ( const CKeyingMaterial vMasterKey,
const CKeyingMaterial vchPlaintext,
const uint256 nIV,
std::vector< uint8_t > &  vchCiphertext 
)

Definition at line 121 of file crypter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: