![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include "keystore.h"#include "serialize.h"#include "streams.h"#include "support/allocators/zeroafterfree.h"#include <atomic>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 | CSecureDataStream |
| class | CCrypter |
| Encryption/decryption context with key information. More... | |
| class | CCryptoKeyStore |
| Keystore which keeps the private keys encrypted. More... | |
Namespaces | |
| wallet_crypto | |
Typedefs | |
| typedef std::vector< unsigned char, secure_allocator< unsigned char > > | CKeyingMaterial |
Functions | |
| bool | EncryptSecret (const CKeyingMaterial &vMasterKey, const CKeyingMaterial &vchPlaintext, const uint256 &nIV, std::vector< unsigned char > &vchCiphertext) |
| bool | DecryptSecret (const CKeyingMaterial &vMasterKey, const std::vector< unsigned char > &vchCiphertext, const uint256 &nIV, CKeyingMaterial &vchPlaintext) |
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 |
| typedef std::vector<unsigned char, secure_allocator<unsigned char> > CKeyingMaterial |
| bool DecryptSecret | ( | const CKeyingMaterial & | vMasterKey, |
| const std::vector< unsigned char > & | vchCiphertext, | ||
| const uint256 & | nIV, | ||
| CKeyingMaterial & | vchPlaintext | ||
| ) |
Definition at line 114 of file crypter.cpp.
| bool EncryptSecret | ( | const CKeyingMaterial & | vMasterKey, |
| const CKeyingMaterial & | vchPlaintext, | ||
| const uint256 & | nIV, | ||
| std::vector< unsigned char > & | vchCiphertext | ||
| ) |
Definition at line 104 of file crypter.cpp.