mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-14 18:21:13 +00:00
Added virtual destruction as first class method guarded on CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562. Updated documentation.
This commit is contained in:
parent
dba6c35c5b
commit
86ccf4c008
4
fhmqv.h
4
fhmqv.h
@ -25,6 +25,10 @@ public:
|
||||
typedef typename GroupParameters::Element Element;
|
||||
typedef FHMQV_Domain<GROUP_PARAMETERS, COFACTOR_OPTION, HASH> Domain;
|
||||
|
||||
#ifndef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
|
||||
virtual ~FHMQV_Domain() {}
|
||||
#endif
|
||||
|
||||
FHMQV_Domain(bool clientRole = true): m_role(clientRole ? RoleClient : RoleServer) {}
|
||||
|
||||
FHMQV_Domain(const GroupParameters ¶ms, bool clientRole = true)
|
||||
|
6
hmqv.h
6
hmqv.h
@ -24,6 +24,10 @@ public:
|
||||
typedef typename GroupParameters::Element Element;
|
||||
typedef HMQV_Domain<GROUP_PARAMETERS, COFACTOR_OPTION, HASH> Domain;
|
||||
|
||||
#ifndef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
|
||||
virtual ~HMQV_Domain() {}
|
||||
#endif
|
||||
|
||||
HMQV_Domain(bool clientRole = true): m_role(clientRole ? RoleClient : RoleServer) {}
|
||||
|
||||
HMQV_Domain(const GroupParameters ¶ms, bool clientRole = true)
|
||||
@ -294,7 +298,7 @@ private:
|
||||
//! \brief Hashed Menezes-Qu-Vanstone in GF(p)
|
||||
//! \details This implementation follows Hugo Krawczyk's <a href="http://eprint.iacr.org/2005/176">HMQV: A High-Performance
|
||||
//! Secure Diffie-Hellman Protocol</a>. Note: this implements HMQV only. HMQV-C with Key Confirmation is not provided.
|
||||
typedef HMQV_Domain<DL_GroupParameters_GFP_DefaultSafePrime> HashedMQV;
|
||||
typedef HMQV_Domain<DL_GroupParameters_GFP_DefaultSafePrime> HMQV_GFP;
|
||||
|
||||
NAMESPACE_END
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user