#include <luc.h>
Inheritance diagram for LUCDIF:

Public Methods | |
| LUCDIF (const Integer &p,const Integer &g) | |
| LUCDIF (RandomNumberGenerator &rng,unsigned int pbits) | |
| LUCDIF (BufferedTransformation &domainParams) | |
| void | DEREncode (BufferedTransformation &domainParams)const |
| bool | ValidateDomainParameters (RandomNumberGenerator &rng)const |
| return whether the domain parameters stored in this object are valid. More... | |
| unsigned int | AgreedValueLength ()const |
| return length of agreed value produced. More... | |
| unsigned int | PrivateKeyLength ()const |
| return length of private keys in this domain. More... | |
| unsigned int | PublicKeyLength ()const |
| return length of public keys in this domain. More... | |
| void | GenerateKeyPair (RandomNumberGenerator &rng,byte *secretKey,byte *publicKey)const |
| generate private/public key pair. More... | |
| bool | Agree (byte *agreedValue,const byte *secretKey,const byte *otherPublicKey,bool validateOtherPublicKey=true)const |
| derive agreed value from your private key and couterparty's public key, return false in case of failure. More... | |
| const Integer& | Prime ()const |
| const Integer& | Generator ()const |
Definition at line 228 of file luc.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 from PK_SimpleKeyAgreementDomain. |
|
|
return length of agreed value produced.
Reimplemented from PK_SimpleKeyAgreementDomain. Definition at line 238 of file luc.h. Referenced by Agree(). |
|
|
|
|
|
generate private/public key pair. Preconditions: \begin{itemize} \item size of privateKey == PrivateKeyLength() \item size of publicKey == PublicKeyLength() \end{itemize} Reimplemented from PK_SimpleKeyAgreementDomain. |
|
|
|
|
|
|
|
|
return length of private keys in this domain.
Reimplemented from PK_SimpleKeyAgreementDomain. Definition at line 239 of file luc.h. Referenced by Agree(), and GenerateKeyPair(). |
|
|
return length of public keys in this domain.
Reimplemented from PK_SimpleKeyAgreementDomain. Definition at line 240 of file luc.h. Referenced by Agree(), and GenerateKeyPair(). |
|
|
return whether the domain parameters stored in this object are valid.
Reimplemented from PK_SimpleKeyAgreementDomain. |
1.2.4 written by Dimitri van Heesch,
© 1997-2000