#include <cryptlib.h>
Inheritance diagram for PK_SimpleKeyAgreementDomain:

Public Methods | |
| virtual | ~PK_SimpleKeyAgreementDomain () |
| virtual bool | ValidateDomainParameters (RandomNumberGenerator &rng)const=0 |
| return whether the domain parameters stored in this object are valid. | |
| virtual unsigned int | AgreedValueLength ()const=0 |
| return length of agreed value produced. | |
| virtual unsigned int | PrivateKeyLength ()const=0 |
| return length of private keys in this domain. | |
| virtual unsigned int | PublicKeyLength ()const=0 |
| return length of public keys in this domain. | |
| virtual void | GenerateKeyPair (RandomNumberGenerator &rng,byte *privateKey,byte *publicKey)const=0 |
| generate private/public key pair. More... | |
| virtual bool | Agree (byte *agreedValue,const byte *privateKey,const byte *otherPublicKey,bool validateOtherPublicKey=true)const=0 |
| derive agreed value from your private key and couterparty's public key, return false in case of failure. More... | |
A key agreement domain is a set of parameters that must be shared by two parties in a key agreement protocol, along with the algorithms for generating key pairs and deriving agreed values.
Definition at line 694 of file cryptlib.h.
|
|
Definition at line 697 of file cryptlib.h. |
|
|
derive agreed value from your private key and couterparty's public key, return false in case of failure. Note: If you have previously validated the public key, use validateOtherPublicKey=false to save time. /*! Preconditions: \begin{itemize} \item size of agreedValue == AgreedValueLength() \item length of privateKey == PrivateKeyLength() \item length of otherPublicKey == PublicKeyLength() \end{itemize} Reimplemented in LUCDIF, and XTR_DH. Referenced by DH2::Agree(). |
|
|
generate private/public key pair. Preconditions: \begin{itemize} \item size of privateKey == PrivateKeyLength() \item size of publicKey == PublicKeyLength() \end{itemize} Reimplemented in LUCDIF, and XTR_DH. Referenced by DH2::GenerateEphemeralKeyPair(), and DH2::GenerateStaticKeyPair(). |
1.2.4 written by Dimitri van Heesch,
© 1997-2000