Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ECDHC Class Template Reference

Elliptic Curve Diffie-Hellman with Cofactor Multiplication, AKA ECDHC. More...

#include <eccrypto.h>

Inheritance diagram for ECDHC:

ECParameters PK_WithPrecomputation PK_Precomputation PK_Precomputation List of all members.

Public Types

typedef EC::Point Point

Public Methods

 ECDHC (const ECParameters< EC > &params)
 ECDHC (const OID &oid)
 ECDHC (const EC &ec,const Point &G,const Integer &n,const Integer &k)
 ECDHC (BufferedTransformation &bt)
bool ValidateDomainParameters (RandomNumberGenerator &rng)const
unsigned int AgreedValueLength ()const
unsigned int PrivateKeyLength ()const
unsigned int PublicKeyLength ()const
void GenerateKeyPair (RandomNumberGenerator &rng,byte *privateKey,byte *publicKey)const
bool Agree (byte *agreedValue,const byte *privateKey,const byte *otherPublicKey,bool validateOtherPublicKey=true)const

Detailed Description

template<class EC> class ECDHC

Elliptic Curve Diffie-Hellman with Cofactor Multiplication, AKA ECDHC.

Definition at line 119 of file eccrypto.h.


Member Typedef Documentation

template<class EC>
typedef EC::Point ECDHC<EC>::Point
 

Reimplemented from ECParameters.

Definition at line 122 of file eccrypto.h.


Constructor & Destructor Documentation

template<class EC>
ECDHC<EC>::ECDHC<EC> ( const ECParameters< EC > & params ) [inline]
 

Definition at line 124 of file eccrypto.h.

template<class EC>
ECDHC<EC>::ECDHC<EC> ( const OID & oid ) [inline]
 

Definition at line 124 of file eccrypto.h.

template<class EC>
ECDHC<EC>::ECDHC<EC> ( const EC & ec,
const Point & G,
const Integer & n,
const Integer & k ) [inline]
 

Definition at line 124 of file eccrypto.h.

template<class EC>
ECDHC<EC>::ECDHC<EC> ( BufferedTransformation & bt ) [inline]
 

Definition at line 124 of file eccrypto.h.


Member Function Documentation

template<class EC>
bool ECDHC< EC >::Agree ( byte * agreedValue,
const byte * privateKey,
const byte * otherPublicKey,
bool validateOtherPublicKey = true ) const
 

Definition at line 695 of file eccrypto.cpp.

template<class EC>
unsigned int ECDHC<EC>::AgreedValueLength ( ) const [inline]
 

Definition at line 128 of file eccrypto.h.

template<class EC>
void ECDHC< EC >::GenerateKeyPair ( RandomNumberGenerator & rng,
byte * privateKey,
byte * publicKey ) const
 

Definition at line 686 of file eccrypto.cpp.

template<class EC>
unsigned int ECDHC<EC>::PrivateKeyLength ( ) const [inline]
 

Definition at line 129 of file eccrypto.h.

template<class EC>
unsigned int ECDHC<EC>::PublicKeyLength ( ) const [inline]
 

Definition at line 130 of file eccrypto.h.

template<class EC>
bool ECDHC<EC>::ValidateDomainParameters ( RandomNumberGenerator & rng ) const [inline]
 

Definition at line 126 of file eccrypto.h.


The documentation for this class was generated from the following files:
Generated at Mon Jan 15 01:16:47 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000