File tree 3 files changed +4
-1
lines changed
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,7 @@ std::string ChaChaTLS_Policy::AlgorithmProvider() const
414
414
void ChaChaTLS_Policy::CipherSetKey (const NameValuePairs ¶ms, const byte *key, size_t length)
415
415
{
416
416
CRYPTOPP_ASSERT (key); CRYPTOPP_ASSERT (length == 32 );
417
+ CRYPTOPP_UNUSED (length);
417
418
418
419
// ChaChaTLS is always 20 rounds. Fetch Rounds() to avoid a spurious failure.
419
420
int rounds = params.GetIntValueWithDefault (Name::Rounds (), ROUNDS);
@@ -509,6 +510,7 @@ std::string XChaCha20_Policy::AlgorithmProvider() const
509
510
void XChaCha20_Policy::CipherSetKey (const NameValuePairs ¶ms, const byte *key, size_t length)
510
511
{
511
512
CRYPTOPP_ASSERT (key); CRYPTOPP_ASSERT (length == 32 );
513
+ CRYPTOPP_UNUSED (length);
512
514
513
515
// Use previous rounds as the default value
514
516
int rounds = params.GetIntValueWithDefault (Name::Rounds (), m_rounds);
Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ void Poly1305_Base<T>::Restart()
314
314
315
315
void Poly1305TLS_Base::UncheckedSetKey (const byte *key, unsigned int length, const NameValuePairs ¶ms)
316
316
{
317
- CRYPTOPP_UNUSED (params);
317
+ CRYPTOPP_UNUSED (params); CRYPTOPP_UNUSED (length);
318
318
CRYPTOPP_ASSERT (key && length >= 32 );
319
319
320
320
// key is {r,s} pair. r is the additional key that gets clamped, s is the nonce.
Original file line number Diff line number Diff line change @@ -870,6 +870,7 @@ bool ed25519Verifier::VerifyAndRestart(PK_MessageAccumulator &messageAccumulator
870
870
bool ed25519Verifier::VerifyStream (std::istream& stream, const byte *signature, size_t signatureLen) const
871
871
{
872
872
CRYPTOPP_ASSERT (signatureLen == SIGNATURE_LENGTH);
873
+ CRYPTOPP_UNUSED (signatureLen);
873
874
874
875
const ed25519PublicKey& pk = static_cast <const ed25519PublicKey&>(GetPublicKey ());
875
876
int ret = Donna::ed25519_sign_open (stream, pk.GetPublicKeyBytePtr (), signature);
You can’t perform that action at this time.
0 commit comments