summaryrefslogtreecommitdiff
path: root/ida.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-07-18 21:33:18 +0000
committerweidai <weidai11@users.noreply.github.com>2003-07-18 21:33:18 +0000
commit55a22f2adff65870cdfc273fa344b49243516dfb (patch)
treec178635daa826ac0a4bd557eb59aa4f853dfb957 /ida.h
parent5b2008101cb8123db25bbe99a2e3688fc426edbc (diff)
downloadcryptopp-git-55a22f2adff65870cdfc273fa344b49243516dfb.tar.gz
allow DLL to be built with VC++ .NET
Diffstat (limited to 'ida.h')
-rw-r--r--ida.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/ida.h b/ida.h
index a19ff856..ba4cbd74 100644
--- a/ida.h
+++ b/ida.h
@@ -14,7 +14,7 @@ class RawIDA : public AutoSignaling<Unflushable<Multichannel<Filter> > >
{
public:
RawIDA(BufferedTransformation *attachment=NULL)
- : AutoSignaling<Unflushable<Multichannel<Filter> > >(attachment) {}
+ {Detach(attachment);}
unsigned int GetThreshold() const {return m_threshold;}
void AddOutputChannel(word32 channelId);
@@ -57,8 +57,11 @@ class SecretSharing : public CustomFlushPropagation<Filter>
{
public:
SecretSharing(RandomNumberGenerator &rng, int threshold, int nShares, BufferedTransformation *attachment=NULL, bool addPadding=true)
- : CustomFlushPropagation<Filter>(attachment), m_rng(rng), m_ida(new OutputProxy(*this, true))
- {IsolatedInitialize(MakeParameters("RecoveryThreshold", threshold)("NumberOfShares", nShares)("AddPadding", addPadding));}
+ : m_rng(rng), m_ida(new OutputProxy(*this, true))
+ {
+ Detach(attachment);
+ IsolatedInitialize(MakeParameters("RecoveryThreshold", threshold)("NumberOfShares", nShares)("AddPadding", addPadding));
+ }
void IsolatedInitialize(const NameValuePairs &parameters=g_nullNameValuePairs);
unsigned int Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking);
@@ -92,8 +95,11 @@ class InformationDispersal : public CustomFlushPropagation<Filter>
{
public:
InformationDispersal(int threshold, int nShares, BufferedTransformation *attachment=NULL, bool addPadding=true)
- : CustomFlushPropagation<Filter>(attachment), m_ida(new OutputProxy(*this, true))
- {IsolatedInitialize(MakeParameters("RecoveryThreshold", threshold)("NumberOfShares", nShares)("AddPadding", addPadding));}
+ : m_ida(new OutputProxy(*this, true))
+ {
+ Detach(attachment);
+ IsolatedInitialize(MakeParameters("RecoveryThreshold", threshold)("NumberOfShares", nShares)("AddPadding", addPadding));
+ }
void IsolatedInitialize(const NameValuePairs &parameters=g_nullNameValuePairs);
unsigned int Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking);
@@ -127,7 +133,7 @@ class PaddingRemover : public Unflushable<Filter>
{
public:
PaddingRemover(BufferedTransformation *attachment=NULL)
- : Unflushable<Filter>(attachment), m_possiblePadding(false) {}
+ : m_possiblePadding(false) {Detach(attachment);}
void IsolatedInitialize(const NameValuePairs &parameters) {m_possiblePadding = false;}
unsigned int Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking);