summaryrefslogtreecommitdiff
path: root/hmqv.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-07-14 02:25:00 -0400
committerJeffrey Walton <noloader@gmail.com>2016-07-14 02:25:00 -0400
commit9e2fee6c7f4aca9a36bf5e0870cd65a355678b1c (patch)
tree31a79ab42a0564c9f8b89038884c92c7831f4fad /hmqv.h
parente54cf1001d0eb1fe5c253e99054216b988b2a5b6 (diff)
downloadcryptopp-git-9e2fee6c7f4aca9a36bf5e0870cd65a355678b1c.tar.gz
Cleared unused parameter warnings under Visual Studio
Diffstat (limited to 'hmqv.h')
-rw-r--r--hmqv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hmqv.h b/hmqv.h
index b9727e58..fd728b84 100644
--- a/hmqv.h
+++ b/hmqv.h
@@ -83,6 +83,7 @@ public:
/*! \pre size of publicKey == PublicStaticKeyLength() */
void GenerateStaticPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const
{
+ CRYPTOPP_UNUSED(rng);
const DL_GroupParameters<Element> &params = GetAbstractGroupParameters();
Integer x(privateKey, StaticPrivateKeyLength());
Element y = params.ExponentiateBase(x);
@@ -105,6 +106,7 @@ public:
//! return length of ephemeral public keys in this domain
void GenerateEphemeralPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const
{
+ CRYPTOPP_UNUSED(rng);
memcpy(publicKey, privateKey+StaticPrivateKeyLength(), EphemeralPublicKeyLength());
}