Cleared unused parameter warnings under Visual Studio
parent
e54cf1001d
commit
9e2fee6c7f
3
fhmqv.h
3
fhmqv.h
|
|
@ -84,6 +84,7 @@ public:
|
||||||
/*! \pre size of publicKey == PublicStaticKeyLength() */
|
/*! \pre size of publicKey == PublicStaticKeyLength() */
|
||||||
void GenerateStaticPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const
|
void GenerateStaticPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const
|
||||||
{
|
{
|
||||||
|
CRYPTOPP_UNUSED(rng);
|
||||||
const DL_GroupParameters<Element> ¶ms = GetAbstractGroupParameters();
|
const DL_GroupParameters<Element> ¶ms = GetAbstractGroupParameters();
|
||||||
Integer x(privateKey, StaticPrivateKeyLength());
|
Integer x(privateKey, StaticPrivateKeyLength());
|
||||||
Element y = params.ExponentiateBase(x);
|
Element y = params.ExponentiateBase(x);
|
||||||
|
|
@ -106,6 +107,7 @@ public:
|
||||||
//! return length of ephemeral public keys in this domain
|
//! return length of ephemeral public keys in this domain
|
||||||
void GenerateEphemeralPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const
|
void GenerateEphemeralPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const
|
||||||
{
|
{
|
||||||
|
CRYPTOPP_UNUSED(rng);
|
||||||
memcpy(publicKey, privateKey+StaticPrivateKeyLength(), EphemeralPublicKeyLength());
|
memcpy(publicKey, privateKey+StaticPrivateKeyLength(), EphemeralPublicKeyLength());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -183,7 +185,6 @@ public:
|
||||||
if(!params.ValidateElement(3, VV2, NULL))
|
if(!params.ValidateElement(3, VV2, NULL))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const Integer& p = params.GetGroupOrder();
|
|
||||||
const Integer& q = params.GetSubgroupOrder();
|
const Integer& q = params.GetSubgroupOrder();
|
||||||
const unsigned int len /*bytes*/ = (((q.BitCount()+1)/2 +7)/8);
|
const unsigned int len /*bytes*/ = (((q.BitCount()+1)/2 +7)/8);
|
||||||
|
|
||||||
|
|
|
||||||
2
hmqv.h
2
hmqv.h
|
|
@ -83,6 +83,7 @@ public:
|
||||||
/*! \pre size of publicKey == PublicStaticKeyLength() */
|
/*! \pre size of publicKey == PublicStaticKeyLength() */
|
||||||
void GenerateStaticPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const
|
void GenerateStaticPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const
|
||||||
{
|
{
|
||||||
|
CRYPTOPP_UNUSED(rng);
|
||||||
const DL_GroupParameters<Element> ¶ms = GetAbstractGroupParameters();
|
const DL_GroupParameters<Element> ¶ms = GetAbstractGroupParameters();
|
||||||
Integer x(privateKey, StaticPrivateKeyLength());
|
Integer x(privateKey, StaticPrivateKeyLength());
|
||||||
Element y = params.ExponentiateBase(x);
|
Element y = params.ExponentiateBase(x);
|
||||||
|
|
@ -105,6 +106,7 @@ public:
|
||||||
//! return length of ephemeral public keys in this domain
|
//! return length of ephemeral public keys in this domain
|
||||||
void GenerateEphemeralPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const
|
void GenerateEphemeralPublicKey(RandomNumberGenerator &rng, const byte *privateKey, byte *publicKey) const
|
||||||
{
|
{
|
||||||
|
CRYPTOPP_UNUSED(rng);
|
||||||
memcpy(publicKey, privateKey+StaticPrivateKeyLength(), EphemeralPublicKeyLength());
|
memcpy(publicKey, privateKey+StaticPrivateKeyLength(), EphemeralPublicKeyLength());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue