Crypto++ 8.9
Free C++ class library of cryptographic schemes
|
Interface for Discrete Log (DL) private keys. More...
#include <pubkey.h>
Public Types | |
typedef T | Element |
Public Member Functions | |
void | MakePublicKey (DL_PublicKey< T > &pub) const |
Initializes a public key from this key. | |
bool | GetVoidValue (const char *name, const std::type_info &valueType, void *pValue) const |
Get a named value. | |
void | AssignFrom (const NameValuePairs &source) |
Initialize or reinitialize this key. | |
virtual const Integer & | GetPrivateExponent () const =0 |
Retrieves the private exponent. | |
virtual void | SetPrivateExponent (const Integer &x)=0 |
Sets the private exponent. | |
Public Member Functions inherited from DL_Key< T > | |
virtual const DL_GroupParameters< T > & | GetAbstractGroupParameters () const =0 |
Retrieves abstract group parameters. | |
virtual DL_GroupParameters< T > & | AccessAbstractGroupParameters ()=0 |
Retrieves abstract group parameters. | |
Interface for Discrete Log (DL) private keys.
typedef T DL_PrivateKey< T >::Element |
|
virtual |
|
inline |
|
inline |
Get a named value.
name | the name of the object or value to retrieve |
valueType | reference to a variable that receives the value |
pValue | void pointer to a variable that receives the value |
GetVoidValue() retrieves the value of name if it exists.
|
inline |
Initialize or reinitialize this key.
source | NameValuePairs to assign |
|
pure virtual |
Retrieves the private exponent.
Must be overridden in derived classes.
Implemented in DL_PrivateKeyImpl< GP >, and DL_PrivateKeyImpl< DL_GroupParameters_EC< EC > >.
|
pure virtual |
Sets the private exponent.
x | the private exponent |
Must be overridden in derived classes.
Implemented in DL_PrivateKeyImpl< GP >, and DL_PrivateKeyImpl< DL_GroupParameters_EC< EC > >.