diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-04-22 00:12:41 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-04-22 00:12:41 +0000 |
commit | 2929d031b1a1ddf2dddde635d0ff7d497fa9f564 (patch) | |
tree | 8733a63fcf68138da6499dd586934f7a8c472316 /filters.cpp | |
parent | ff83e8b4651dbde245f089a0d5dc3e97e490bdf9 (diff) | |
download | cryptopp-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.cpp | 4 |
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 ¶meters) { 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; } |