summaryrefslogtreecommitdiff
path: root/chacha.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-10-23 08:12:02 -0400
committerJeffrey Walton <noloader@gmail.com>2018-10-23 08:12:02 -0400
commit028a9f049400aad7b3568603c5e00ef8951dacad (patch)
treecdb57d3f9e308771c2a3a1fce7f7680031c32a52 /chacha.cpp
parent4ad8fa9efe0151adec3d35e0de691b0ce1a0db8d (diff)
downloadcryptopp-git-028a9f049400aad7b3568603c5e00ef8951dacad.tar.gz
Remove old comments from chacha.cpp
This should have been done at 916c4484a270
Diffstat (limited to 'chacha.cpp')
-rw-r--r--chacha.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/chacha.cpp b/chacha.cpp
index 5ea16192..d93e3d93 100644
--- a/chacha.cpp
+++ b/chacha.cpp
@@ -12,9 +12,8 @@
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(KeystreamOperation operation, byte *output,
+ const word32 *state, size_t iterationCount, unsigned int rounds);
#endif
#define CHACHA_QUARTER_ROUND(a,b,c,d) \
@@ -73,12 +72,6 @@ void ChaCha_Policy::CipherResynchronize(byte *keystreamBuffer, const byte *IV, s
void ChaCha_Policy::SeekToIteration(lword iterationCount)
{
- // TODO: these were Salsa20, and Wei re-arranged the state array for SSE2 operations.
- // If we can generate some out-of-band test vectors, then test and implement. Also
- // see the test vectors in salsa.txt and the use of Seek test argument.
- // m_state[8] = (word32)iterationCount;
- // m_state[5] = (word32)SafeRightShift<32>(iterationCount);
-
m_state[13] = (word32)iterationCount;
m_state[12] = (word32)SafeRightShift<32>(iterationCount);
}