crypter: add tests for crypter

This commit is contained in:
Cory Fields
2015-03-20 01:27:50 -04:00
committed by lateminer
parent df2b01b7cd
commit b1913e4dd2
3 changed files with 237 additions and 0 deletions

View File

@@ -67,9 +67,15 @@ public:
typedef std::vector<unsigned char, secure_allocator<unsigned char> > CKeyingMaterial;
namespace wallet_crypto
{
class TestCrypter;
}
/** Encryption/decryption context with key information */
class CCrypter
{
friend class wallet_crypto::TestCrypter; // for test access to chKey/chIV
private:
unsigned char chKey[WALLET_CRYPTO_KEY_SIZE];
unsigned char chIV[WALLET_CRYPTO_IV_SIZE];