diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-12-25 05:49:43 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-12-25 05:49:43 -0500 |
commit | 5cbc6710d7c921e629996b18ac1cb1517d6803ff (patch) | |
tree | 1b89618e62d88658a05dcdf8cff37ecc35aa9075 /xed25519.cpp | |
parent | 5b95b0ab1ecb00f16a981cf8947f911b2f8c480b (diff) | |
download | cryptopp-git-5cbc6710d7c921e629996b18ac1cb1517d6803ff.tar.gz |
Clear unused variable warning
Diffstat (limited to 'xed25519.cpp')
-rw-r--r-- | xed25519.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xed25519.cpp b/xed25519.cpp index c149c9ed..75606c4d 100644 --- a/xed25519.cpp +++ b/xed25519.cpp @@ -349,7 +349,7 @@ void ed25519PrivateKey::ClampKeys(byte y[PUBLIC_KEYLENGTH], byte x[SECRET_KEYLEN {
x[0] &= 248; x[31] &= 127; x[31] |= 64;
int ret = Donna::ed25519_publickey(y, x);
- CRYPTOPP_ASSERT(ret == 0);
+ CRYPTOPP_ASSERT(ret == 0); CRYPTOPP_UNUSED(ret);
}
bool ed25519PrivateKey::IsClamped(const byte x[SECRET_KEYLENGTH]) const
@@ -426,7 +426,7 @@ void ed25519PrivateKey::GenerateRandom(RandomNumberGenerator &rng, const NameVal rng.GenerateBlock(m_sk, 32);
m_sk[0] &= 248; m_sk[31] &= 127; m_sk[31] |= 64;
int ret = Donna::ed25519_publickey(m_pk, m_sk);
- CRYPTOPP_ASSERT(ret == 0);
+ CRYPTOPP_ASSERT(ret == 0); CRYPTOPP_UNUSED(ret);
}
void ed25519PrivateKey::MakePublicKey (PublicKey &pub) const
|