Implement CSecureDataStream for streaming CKeyingMaterial
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "keystore.h"
|
||||
#include "serialize.h"
|
||||
#include "streams.h"
|
||||
#include "support/allocators/secure.h"
|
||||
#include "zcash/Address.hpp"
|
||||
|
||||
@@ -67,6 +68,18 @@ public:
|
||||
|
||||
typedef std::vector<unsigned char, secure_allocator<unsigned char> > CKeyingMaterial;
|
||||
|
||||
class CSecureDataStream : public CBaseDataStream<CKeyingMaterial>
|
||||
{
|
||||
public:
|
||||
explicit CSecureDataStream(int nTypeIn, int nVersionIn) : CBaseDataStream(nTypeIn, nVersionIn) { }
|
||||
|
||||
CSecureDataStream(const_iterator pbegin, const_iterator pend, int nTypeIn, int nVersionIn) :
|
||||
CBaseDataStream(pbegin, pend, nTypeIn, nVersionIn) { }
|
||||
|
||||
CSecureDataStream(const vector_type& vchIn, int nTypeIn, int nVersionIn) :
|
||||
CBaseDataStream(vchIn, nTypeIn, nVersionIn) { }
|
||||
};
|
||||
|
||||
/** Encryption/decryption context with key information */
|
||||
class CCrypter
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user