![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
Include dependency graph for crypter.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | CMasterKey |
| Master key for wallet encryption. More... | |
| class | CCrypter |
| Encryption/decryption context with key information. More... | |
| class | CCryptoKeyStore |
| Keystore which keeps the private keys encrypted. More... | |
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 |
| 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 113 of file crypter.cpp.
References CCrypter::Decrypt(), memcpy(), CCrypter::SetKey(), and WALLET_CRYPTO_KEY_SIZE.
Referenced by CCryptoKeyStore::GetKey(), and CCryptoKeyStore::Unlock().
Here is the call graph for this function:
Here is the caller graph for this function:| bool EncryptSecret | ( | const CKeyingMaterial & | vMasterKey, |
| const CKeyingMaterial & | vchPlaintext, | ||
| const uint256 & | nIV, | ||
| std::vector< unsigned char > & | vchCiphertext | ||
| ) |
Definition at line 103 of file crypter.cpp.
References CCrypter::Encrypt(), memcpy(), CCrypter::SetKey(), and WALLET_CRYPTO_KEY_SIZE.
Referenced by CCryptoKeyStore::AddKeyPubKey(), and CCryptoKeyStore::EncryptKeys().
Here is the call graph for this function:
Here is the caller graph for this function:| const unsigned int WALLET_CRYPTO_KEY_SIZE = 32 |
Definition at line 14 of file crypter.h.
Referenced by DecryptSecret(), EncryptSecret(), CWallet::EncryptWallet(), CCrypter::SetKey(), and CCrypter::SetKeyFromPassphrase().
| const unsigned int WALLET_CRYPTO_SALT_SIZE = 8 |
Definition at line 15 of file crypter.h.
Referenced by CWallet::EncryptWallet(), and CCrypter::SetKeyFromPassphrase().
1.8.8