#include <dh.h>
Inheritance diagram for DH:

Public Methods | |
| DH (const Integer &p,const Integer &g) | |
| DH (RandomNumberGenerator &rng,unsigned int pbits) | |
| DH (BufferedTransformation &domainParams) | |
| void | DEREncode (BufferedTransformation &domainParams)const |
| void | Precompute (unsigned int precomputationStorage=16) |
| void | LoadPrecomputation (BufferedTransformation &storedPrecomputation) |
| retrieve previously saved precomputation. More... | |
| void | SavePrecomputation (BufferedTransformation &storedPrecomputation)const |
| save precomputation for later use. More... | |
| 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 |
| const Integer& | GetPrime ()const |
| const Integer& | GetGenerator ()const |
Definition at line 12 of file dh.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
retrieve previously saved precomputation.
Reimplemented from PK_Precomputation. |
|
|
The exact semantics of Precompute() is varies, but typically it means calculate a table of n objects that can be used later to speed up computation. Reimplemented from PK_Precomputation. |
|
|
|
|
|
|
|
|
save precomputation for later use.
Reimplemented from PK_Precomputation. |
|
|
|
1.2.4 written by Dimitri van Heesch,
© 1997-2000