Bitcoin ABC 0.26.3
P2P Digital Currency
|
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... | |
Namespaces | |
namespace | wallet_crypto_tests |
Typedefs | |
typedef std::vector< uint8_t, secure_allocator< uint8_t > > | CKeyingMaterial |
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) |
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 |
bool DecryptKey | ( | const CKeyingMaterial & | vMasterKey, |
const std::vector< uint8_t > & | vchCryptedSecret, | ||
const CPubKey & | vchPubKey, | ||
CKey & | key | ||
) |
Definition at line 146 of file crypter.cpp.
bool DecryptSecret | ( | const CKeyingMaterial & | vMasterKey, |
const std::vector< uint8_t > & | vchCiphertext, | ||
const uint256 & | nIV, | ||
CKeyingMaterial & | vchPlaintext | ||
) |
Definition at line 134 of file crypter.cpp.
bool EncryptSecret | ( | const CKeyingMaterial & | vMasterKey, |
const CKeyingMaterial & | vchPlaintext, | ||
const uint256 & | nIV, | ||
std::vector< uint8_t > & | vchCiphertext | ||
) |
Definition at line 121 of file crypter.cpp.