![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <crypter.h>
Public Member Functions | |
bool | SetKeyFromPassphrase (const SecureString &strKeyData, const std::vector< unsigned char > &chSalt, const unsigned int nRounds, const unsigned int nDerivationMethod) |
bool | Encrypt (const CKeyingMaterial &vchPlaintext, std::vector< unsigned char > &vchCiphertext) |
bool | Decrypt (const std::vector< unsigned char > &vchCiphertext, CKeyingMaterial &vchPlaintext) |
bool | SetKey (const CKeyingMaterial &chNewKey, const std::vector< unsigned char > &chNewIV) |
void | CleanKey () |
CCrypter () | |
~CCrypter () | |
Private Attributes | |
unsigned char | chKey [WALLET_CRYPTO_KEY_SIZE] |
unsigned char | chIV [WALLET_CRYPTO_KEY_SIZE] |
bool | fKeySet |
|
inline |
Definition at line 83 of file crypter.h.
Referenced by ~CCrypter().
bool CCrypter::Decrypt | ( | const std::vector< unsigned char > & | vchCiphertext, |
CKeyingMaterial & | vchPlaintext | ||
) |
Definition at line 81 of file crypter.cpp.
Referenced by CWallet::ChangeWalletPassphrase(), DecryptSecret(), and CWallet::Unlock().
bool CCrypter::Encrypt | ( | const CKeyingMaterial & | vchPlaintext, |
std::vector< unsigned char > & | vchCiphertext | ||
) |
Definition at line 50 of file crypter.cpp.
Referenced by CWallet::ChangeWalletPassphrase(), EncryptSecret(), and CWallet::EncryptWallet().
bool CCrypter::SetKey | ( | const CKeyingMaterial & | chNewKey, |
const std::vector< unsigned char > & | chNewIV | ||
) |
Definition at line 38 of file crypter.cpp.
Referenced by DecryptSecret(), and EncryptSecret().
bool CCrypter::SetKeyFromPassphrase | ( | const SecureString & | strKeyData, |
const std::vector< unsigned char > & | chSalt, | ||
const unsigned int | nRounds, | ||
const unsigned int | nDerivationMethod | ||
) |
Definition at line 17 of file crypter.cpp.
Referenced by CWallet::ChangeWalletPassphrase(), CWallet::EncryptWallet(), and CWallet::Unlock().
|
private |
Definition at line 74 of file crypter.h.
Referenced by CCrypter(), CleanKey(), Decrypt(), Encrypt(), SetKey(), SetKeyFromPassphrase(), and ~CCrypter().
|
private |
Definition at line 73 of file crypter.h.
Referenced by CCrypter(), CleanKey(), Decrypt(), Encrypt(), SetKey(), SetKeyFromPassphrase(), and ~CCrypter().
|
private |
Definition at line 75 of file crypter.h.
Referenced by CCrypter(), CleanKey(), Decrypt(), Encrypt(), SetKey(), and SetKeyFromPassphrase().