Updated documentation

pull/263/head
Jeffrey Walton 2016-07-14 01:59:23 -04:00
parent 46f907943f
commit dba6c35c5b
1 changed files with 41 additions and 42 deletions

View File

@ -23,10 +23,10 @@
NAMESPACE_BEGIN(CryptoPP) NAMESPACE_BEGIN(CryptoPP)
//! Elliptic Curve Parameters //! \brief Elliptic Curve Parameters
/*! This class corresponds to the ASN.1 sequence of the same name //! \tparam EC elliptic curve field
in ANSI X9.62 (also SEC 1). //! \details This class corresponds to the ASN.1 sequence of the same name
*/ //! in ANSI X9.62 and SEC 1. EC is currently defined for ECP and EC2N.
template <class EC> template <class EC>
class DL_GroupParameters_EC : public DL_GroupParametersImpl<EcPrecomputation<EC> > class DL_GroupParameters_EC : public DL_GroupParametersImpl<EcPrecomputation<EC> >
{ {
@ -215,10 +215,9 @@ struct ECMQV
#endif #endif
}; };
//! Hashed Menezes-Qu-Vanstone in GF(p) with key validation, //! \brief Hashed Menezes-Qu-Vanstone in ECP or EC2N
/*! <a href="http://eprint.iacr.org/2005/176">HMQV: A High-Performance Secure Diffie-Hellman Protocol</a> //! \details This implementation follows Hugo Krawczyk's <a href="http://eprint.iacr.org/2005/176">HMQV: A High-Performance
Note: this implements HMQV only. HMQV-C (with Key Confirmation) will be provided separately. //! Secure Diffie-Hellman Protocol</a>. Note: this implements HMQV only. HMQV-C with Key Confirmation is not provided.
*/
template <class EC, class COFACTOR_OPTION = CPP_TYPENAME DL_GroupParameters_EC<EC>::DefaultCofactorOption, class HASH = SHA256> template <class EC, class COFACTOR_OPTION = CPP_TYPENAME DL_GroupParameters_EC<EC>::DefaultCofactorOption, class HASH = SHA256>
struct HMQV struct HMQV
{ {
@ -234,10 +233,10 @@ typedef HMQV< ECP, DL_GroupParameters_EC< ECP >::DefaultCofactorOption, SHA256 >
typedef HMQV< ECP, DL_GroupParameters_EC< ECP >::DefaultCofactorOption, SHA384 >::Domain HMQV384; typedef HMQV< ECP, DL_GroupParameters_EC< ECP >::DefaultCofactorOption, SHA384 >::Domain HMQV384;
typedef HMQV< ECP, DL_GroupParameters_EC< ECP >::DefaultCofactorOption, SHA512 >::Domain HMQV512; typedef HMQV< ECP, DL_GroupParameters_EC< ECP >::DefaultCofactorOption, SHA512 >::Domain HMQV512;
//! Fully Hashed Menezes-Qu-Vanstone in GF(p) with key validation, //! \brief Fully Hashed Menezes-Qu-Vanstone in ECP or EC2N
/*! <a href="http://eprint.iacr.org/2009/408">A Secure and Efficient Authenticated Diffie–Hellman Protocol</a> //! \details This implementation follows Augustin P. Sarr and Philippe ElbazVincent, and JeanClaude Bajard's
Note: this is FHMQV, Protocol 5, from page 11; and not FHMQV-C. //! <a href="http://eprint.iacr.org/2009/408">A Secure and Efficient Authenticated Diffie-Hellman Protocol</a>.
*/ //! Note: this is FHMQV, Protocol 5, from page 11; and not FHMQV-C.
template <class EC, class COFACTOR_OPTION = CPP_TYPENAME DL_GroupParameters_EC<EC>::DefaultCofactorOption, class HASH = SHA256> template <class EC, class COFACTOR_OPTION = CPP_TYPENAME DL_GroupParameters_EC<EC>::DefaultCofactorOption, class HASH = SHA256>
struct FHMQV struct FHMQV
{ {