From f23b58b73c5a13b95bf3e74e5698764aa4049e76 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 24 Jan 2019 22:26:15 -0500 Subject: [PATCH] Remove rounds from ChaChaTLS Rounds are alwys 20 in the IETF implementation. --- chacha.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/chacha.cpp b/chacha.cpp index 7d780691..1b2e813e 100644 --- a/chacha.cpp +++ b/chacha.cpp @@ -332,12 +332,12 @@ void ChaCha_Policy::OperateKeystream(KeystreamOperation operation, std::string ChaChaTLS_Policy::AlgorithmName() const { - return std::string("ChaChaTLS")+IntToString(static_cast(m_rounds)); + return std::string("ChaChaTLS"); } std::string ChaChaTLS_Policy::AlgorithmProvider() const { - // Disable SIMD until we can generate large block test vectors + // Disable SIMD until we obtain large block test vectors and handle wrap. // https://mailarchive.ietf.org/arch/msg/saag/S0_YjVkzEx2s2bHd8KIzjK1CwZ4 #if 0 #if (CRYPTOPP_AVX2_AVAILABLE) @@ -418,7 +418,7 @@ void ChaChaTLS_Policy::SeekToIteration(lword iterationCount) unsigned int ChaChaTLS_Policy::GetAlignment() const { - // Disable SIMD until we can generate large block test vectors + // Disable SIMD until we obtain large block test vectors and handle wrap. // https://mailarchive.ietf.org/arch/msg/saag/S0_YjVkzEx2s2bHd8KIzjK1CwZ4 #if 0 #if (CRYPTOPP_AVX2_AVAILABLE) @@ -442,7 +442,7 @@ unsigned int ChaChaTLS_Policy::GetAlignment() const unsigned int ChaChaTLS_Policy::GetOptimalBlockSize() const { - // Disable SIMD until we can generate large block test vectors + // Disable SIMD until we obtain large block test vectors and handle wrap. // https://mailarchive.ietf.org/arch/msg/saag/S0_YjVkzEx2s2bHd8KIzjK1CwZ4 #if 0 #if (CRYPTOPP_AVX2_AVAILABLE) @@ -475,7 +475,7 @@ unsigned int ChaChaTLS_Policy::GetOptimalBlockSize() const void ChaChaTLS_Policy::OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, size_t iterationCount) { - // Disable SIMD until we can generate large block test vectors + // Disable SIMD until we obtain large block test vectors and handle wrap. // https://mailarchive.ietf.org/arch/msg/saag/S0_YjVkzEx2s2bHd8KIzjK1CwZ4 #if 0 #if (CRYPTOPP_AVX2_AVAILABLE)