![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
Encryption/decryption context with key information. More...
#include <crypter.h>
Public Member Functions | |
| bool | SetKeyFromPassphrase (const SecureString &key_data, std::span< const unsigned char > salt, unsigned int rounds, unsigned int derivation_method) |
| bool | Encrypt (const CKeyingMaterial &vchPlaintext, std::vector< unsigned char > &vchCiphertext) const |
| bool | Decrypt (std::span< const unsigned char > ciphertext, CKeyingMaterial &plaintext) const |
| bool | SetKey (const CKeyingMaterial &new_key, std::span< const unsigned char > new_iv) |
| void | CleanKey () |
| CCrypter () | |
| ~CCrypter () | |
Private Member Functions | |
| int | BytesToKeySHA512AES (std::span< const unsigned char > salt, const SecureString &key_data, int count, unsigned char *key, unsigned char *iv) const |
Private Attributes | |
| std::vector< unsigned char, secure_allocator< unsigned char > > | vchKey |
| std::vector< unsigned char, secure_allocator< unsigned char > > | vchIV |
| bool | fKeySet |
Friends | |
| class | wallet_crypto_tests::TestCrypter |
|
inline |
|
private |
Definition at line 15 of file crypter.cpp.
|
inline |
| bool wallet::CCrypter::Decrypt | ( | std::span< const unsigned char > | ciphertext, |
| CKeyingMaterial & | plaintext ) const |
| bool wallet::CCrypter::Encrypt | ( | const CKeyingMaterial & | vchPlaintext, |
| std::vector< unsigned char > & | vchCiphertext ) const |
| bool wallet::CCrypter::SetKey | ( | const CKeyingMaterial & | new_key, |
| std::span< const unsigned char > | new_iv ) |
| bool wallet::CCrypter::SetKeyFromPassphrase | ( | const SecureString & | key_data, |
| std::span< const unsigned char > | salt, | ||
| unsigned int | rounds, | ||
| unsigned int | derivation_method ) |
Definition at line 41 of file crypter.cpp.
|
private |
|
private |