summaryrefslogtreecommitdiff
path: root/chacha.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-02-22 08:38:20 -0500
committerJeffrey Walton <noloader@gmail.com>2019-02-22 08:38:20 -0500
commit95bc90adc4b4afb3408a9b7f29ff949b494a1e1c (patch)
treecd39fafa57de15e1d61964e4f36266aecb6c0cf5 /chacha.cpp
parent3185e93fe303369280b23e2dfa65ff85a875c2cb (diff)
downloadcryptopp-git-95bc90adc4b4afb3408a9b7f29ff949b494a1e1c.tar.gz
Clear unused warnings with MSVC
Diffstat (limited to 'chacha.cpp')
-rw-r--r--chacha.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/chacha.cpp b/chacha.cpp
index e16a5008..dccde301 100644
--- a/chacha.cpp
+++ b/chacha.cpp
@@ -414,6 +414,7 @@ std::string ChaChaTLS_Policy::AlgorithmProvider() const
void ChaChaTLS_Policy::CipherSetKey(const NameValuePairs &params, const byte *key, size_t length)
{
CRYPTOPP_ASSERT(key); CRYPTOPP_ASSERT(length == 32);
+ CRYPTOPP_UNUSED(length);
// ChaChaTLS is always 20 rounds. Fetch Rounds() to avoid a spurious failure.
int rounds = params.GetIntValueWithDefault(Name::Rounds(), ROUNDS);
@@ -509,6 +510,7 @@ std::string XChaCha20_Policy::AlgorithmProvider() const
void XChaCha20_Policy::CipherSetKey(const NameValuePairs &params, const byte *key, size_t length)
{
CRYPTOPP_ASSERT(key); CRYPTOPP_ASSERT(length == 32);
+ CRYPTOPP_UNUSED(length);
// Use previous rounds as the default value
int rounds = params.GetIntValueWithDefault(Name::Rounds(), m_rounds);