Bitcoin ABC 0.26.3
P2P Digital Currency
|
Encryption/decryption context with key information. More...
#include <crypter.h>
Public Member Functions | |
bool | SetKeyFromPassphrase (const SecureString &strKeyData, const std::vector< uint8_t > &chSalt, const unsigned int nRounds, const unsigned int nDerivationMethod) |
bool | Encrypt (const CKeyingMaterial &vchPlaintext, std::vector< uint8_t > &vchCiphertext) const |
bool | Decrypt (const std::vector< uint8_t > &vchCiphertext, CKeyingMaterial &vchPlaintext) const |
bool | SetKey (const CKeyingMaterial &chNewKey, const std::vector< uint8_t > &chNewIV) |
void | CleanKey () |
CCrypter () | |
~CCrypter () | |
Private Member Functions | |
int | BytesToKeySHA512AES (const std::vector< uint8_t > &chSalt, const SecureString &strKeyData, int count, uint8_t *key, uint8_t *iv) const |
Private Attributes | |
std::vector< uint8_t, secure_allocator< uint8_t > > | vchKey |
std::vector< uint8_t, secure_allocator< uint8_t > > | vchIV |
bool | fKeySet |
Friends | |
class | wallet_crypto_tests::TestCrypter |
|
inline |
|
private |
Definition at line 13 of file crypter.cpp.
|
inline |
bool CCrypter::Decrypt | ( | const std::vector< uint8_t > & | vchCiphertext, |
CKeyingMaterial & | vchPlaintext | ||
) | const |
bool CCrypter::Encrypt | ( | const CKeyingMaterial & | vchPlaintext, |
std::vector< uint8_t > & | vchCiphertext | ||
) | const |
bool CCrypter::SetKey | ( | const CKeyingMaterial & | chNewKey, |
const std::vector< uint8_t > & | chNewIV | ||
) |
bool CCrypter::SetKeyFromPassphrase | ( | const SecureString & | strKeyData, |
const std::vector< uint8_t > & | chSalt, | ||
const unsigned int | nRounds, | ||
const unsigned int | nDerivationMethod | ||
) |
Definition at line 41 of file crypter.cpp.
|
private |
|
private |