From 2929d031b1a1ddf2dddde635d0ff7d497fa9f564 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 22 Apr 2003 00:12:41 +0000 Subject: remove default NullRNG() for signing git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@61 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- filters.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filters.cpp') 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; } -- cgit v1.2.1