diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-07-14 02:25:00 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-07-14 02:25:00 -0400 |
commit | 9e2fee6c7f4aca9a36bf5e0870cd65a355678b1c (patch) | |
tree | 31a79ab42a0564c9f8b89038884c92c7831f4fad /hmqv.h | |
parent | e54cf1001d0eb1fe5c253e99054216b988b2a5b6 (diff) | |
download | cryptopp-git-9e2fee6c7f4aca9a36bf5e0870cd65a355678b1c.tar.gz |
Cleared unused parameter warnings under Visual Studio
Diffstat (limited to 'hmqv.h')
-rw-r--r-- | hmqv.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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> ¶ms = 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());
}
|