summaryrefslogtreecommitdiff
path: root/filters.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-04-22 00:12:41 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-04-22 00:12:41 +0000
commit2929d031b1a1ddf2dddde635d0ff7d497fa9f564 (patch)
tree8733a63fcf68138da6499dd586934f7a8c472316 /filters.cpp
parentff83e8b4651dbde245f089a0d5dc3e97e490bdf9 (diff)
downloadcryptopp-2929d031b1a1ddf2dddde635d0ff7d497fa9f564.tar.gz
remove default NullRNG() for signing
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@61 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'filters.cpp')
-rw-r--r--filters.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/filters.cpp b/filters.cpp
index 4c4d660..47b5c93 100644
--- a/filters.cpp
+++ b/filters.cpp
@@ -707,7 +707,7 @@ void HashVerificationFilter::LastPut(const byte *inString, unsigned int length)
void SignerFilter::IsolatedInitialize(const NameValuePairs &parameters)
{
m_putMessage = parameters.GetValueWithDefault(Name::PutMessage(), false);
- m_messageAccumulator.reset(m_signer.NewSignatureAccumulator());
+ m_messageAccumulator.reset(m_signer.NewSignatureAccumulator(m_rng));
}
unsigned int SignerFilter::Put2(const byte *inString, unsigned int length, int messageEnd, bool blocking)
@@ -721,7 +721,7 @@ unsigned int SignerFilter::Put2(const byte *inString, unsigned int length, int m
m_buf.New(m_signer.SignatureLength());
m_signer.Sign(m_rng, m_messageAccumulator.release(), m_buf);
FILTER_OUTPUT(2, m_buf, m_buf.size(), messageEnd);
- m_messageAccumulator.reset(m_signer.NewSignatureAccumulator());
+ m_messageAccumulator.reset(m_signer.NewSignatureAccumulator(m_rng));
}
FILTER_END_NO_MESSAGE_END;
}