diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-07-18 21:33:18 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-07-18 21:33:18 +0000 |
commit | 55a22f2adff65870cdfc273fa344b49243516dfb (patch) | |
tree | c178635daa826ac0a4bd557eb59aa4f853dfb957 /ida.h | |
parent | 5b2008101cb8123db25bbe99a2e3688fc426edbc (diff) | |
download | cryptopp-git-55a22f2adff65870cdfc273fa344b49243516dfb.tar.gz |
allow DLL to be built with VC++ .NET
Diffstat (limited to 'ida.h')
-rw-r--r-- | ida.h | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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 ¶meters=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 ¶meters=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 ¶meters) {m_possiblePadding = false;} unsigned int Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking); |