2017-01-27 12:05:45 +00:00
|
|
|
// mqv.cpp - originally written and placed in the public domain by Wei Dai
|
2016-09-09 00:24:25 +00:00
|
|
|
// HMQV provided by Jeffrey Walton, Ray Clayton and Uri Blumenthal.
|
|
|
|
// FHMQV provided by Uri Blumenthal.
|
2015-11-05 06:59:46 +00:00
|
|
|
|
|
|
|
#include "pch.h"
|
2018-01-21 21:25:49 +00:00
|
|
|
#include "config.h"
|
2015-11-05 06:59:46 +00:00
|
|
|
#include "mqv.h"
|
2016-09-09 00:24:25 +00:00
|
|
|
#include "hmqv.h"
|
|
|
|
#include "fhmqv.h"
|
2019-08-05 07:51:58 +00:00
|
|
|
#include "eccrypto.h"
|
2015-11-05 06:59:46 +00:00
|
|
|
|
2018-10-17 08:27:54 +00:00
|
|
|
// Squash MS LNK4221 and libtool warnings
|
|
|
|
extern const char MQV_FNAME[] = __FILE__;
|
|
|
|
|
2015-11-05 06:59:46 +00:00
|
|
|
NAMESPACE_BEGIN(CryptoPP)
|
|
|
|
|
2016-10-18 02:00:31 +00:00
|
|
|
#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_DOXYGEN_PROCESSING)
|
2015-11-05 06:59:46 +00:00
|
|
|
void TestInstantiations_MQV()
|
|
|
|
{
|
2019-08-05 07:51:58 +00:00
|
|
|
MQV mqv;
|
|
|
|
ECMQV<ECP> ecmqv;
|
|
|
|
|
|
|
|
CRYPTOPP_UNUSED(mqv);
|
|
|
|
CRYPTOPP_UNUSED(ecmqv);
|
2015-11-05 06:59:46 +00:00
|
|
|
}
|
2016-09-09 00:24:25 +00:00
|
|
|
|
|
|
|
void TestInstantiations_HMQV()
|
|
|
|
{
|
|
|
|
HMQV hmqv;
|
2019-08-05 07:51:58 +00:00
|
|
|
ECHMQV<ECP> echmqv;
|
|
|
|
|
|
|
|
CRYPTOPP_UNUSED(hmqv);
|
|
|
|
CRYPTOPP_UNUSED(echmqv);
|
2016-09-09 00:24:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void TestInstantiations_FHMQV()
|
|
|
|
{
|
|
|
|
FHMQV fhmqv;
|
2019-08-05 07:51:58 +00:00
|
|
|
ECFHMQV<ECP> ecfhmqv;
|
|
|
|
|
|
|
|
CRYPTOPP_UNUSED(fhmqv);
|
|
|
|
CRYPTOPP_UNUSED(ecfhmqv);
|
2016-09-09 00:24:25 +00:00
|
|
|
}
|
2015-11-18 20:32:28 +00:00
|
|
|
#endif
|
2015-11-05 06:59:46 +00:00
|
|
|
|
|
|
|
NAMESPACE_END
|