summaryrefslogtreecommitdiff
path: root/chacha.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-10-23 08:52:29 -0400
committerJeffrey Walton <noloader@gmail.com>2018-10-23 08:52:29 -0400
commit6a5d2ab03d05cdde8d3fbf96fc2db9ac80b11e7e (patch)
tree37ad6bf4b81ef776908d0a6ef0e0f0f63d12310e /chacha.cpp
parent028a9f049400aad7b3568603c5e00ef8951dacad (diff)
downloadcryptopp-git-6a5d2ab03d05cdde8d3fbf96fc2db9ac80b11e7e.tar.gz
Remove unneeded params from ChaCha_OperateKeystream_SSE2
Diffstat (limited to 'chacha.cpp')
-rw-r--r--chacha.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/chacha.cpp b/chacha.cpp
index d93e3d93..6ae78c4b 100644
--- a/chacha.cpp
+++ b/chacha.cpp
@@ -12,8 +12,7 @@
NAMESPACE_BEGIN(CryptoPP)
#if defined(CRYPTOPP_SSE2_INTRIN_AVAILABLE)
-extern void ChaCha_OperateKeystream_SSE2(KeystreamOperation operation, byte *output,
- const word32 *state, size_t iterationCount, unsigned int rounds);
+extern void ChaCha_OperateKeystream_SSE2(const word32 *state, byte *message, unsigned int rounds);
#endif
#define CHACHA_QUARTER_ROUND(a,b,c,d) \
@@ -104,7 +103,7 @@ void ChaCha_Policy::OperateKeystream(KeystreamOperation operation,
{
while (iterationCount >= 4)
{
- ChaCha_OperateKeystream_SSE2(operation, output, m_state, iterationCount, m_rounds);
+ ChaCha_OperateKeystream_SSE2(m_state, output, m_rounds);
if ((operation & INPUT_NULL) != INPUT_NULL)
xorbuf(output, input, 4*BYTES_PER_ITERATION);