Crypto++ 8.7
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. More... | |
bool | GetVoidValue (const char *name, const std::type_info &valueType, void *pValue) const |
Get a named value. More... | |
void | AssignFrom (const NameValuePairs &source) |
Initialize or reinitialize this key. More... | |
virtual const Integer & | GetPrivateExponent () const =0 |
Retrieves the private exponent. More... | |
virtual void | SetPrivateExponent (const Integer &x)=0 |
Sets the private exponent. More... | |
Public Member Functions inherited from DL_Key< T > | |
virtual const DL_GroupParameters< T > & | GetAbstractGroupParameters () const =0 |
Retrieves abstract group parameters. More... | |
virtual DL_GroupParameters< T > & | AccessAbstractGroupParameters ()=0 |
Retrieves abstract group parameters. More... | |
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 > >.