![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
#include "crypter.h"
#include "script.h"
#include <string>
#include <vector>
#include <boost/foreach.hpp>
#include <openssl/aes.h>
#include <openssl/evp.h>
Go to the source code of this file.
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) |
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().
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().