Crypto++ 8.9
Free C++ class library of cryptographic schemes
|
Interface for Discrete Log (DL) public keys. More...
#include <pubkey.h>
Public Types | |
typedef T | Element |
Public Member Functions | |
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 Element & | GetPublicElement () const |
Retrieves the public element. | |
virtual void | SetPublicElement (const Element &y) |
Sets the public element. | |
virtual Element | ExponentiatePublicElement (const Integer &exponent) const |
Exponentiates this element. | |
virtual Element | CascadeExponentiateBaseAndPublicElement (const Integer &baseExp, const Integer &publicExp) const |
Exponentiates an element. | |
virtual const DL_FixedBasePrecomputation< T > & | GetPublicPrecomputation () const =0 |
Accesses the public precomputation. | |
virtual DL_FixedBasePrecomputation< T > & | AccessPublicPrecomputation ()=0 |
Accesses the public precomputation. | |
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) public keys.
typedef T DL_PublicKey< T >::Element |
|
virtual |
|
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.
void DL_PublicKey< T >::AssignFrom | ( | const NameValuePairs & | source | ) |
Initialize or reinitialize this key.
source | NameValuePairs to assign |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Accesses the public precomputation.
GetPublicPrecomputation returns a const reference, while AccessPublicPrecomputation returns a non-const reference. Must be overridden in derived classes.
Implemented in DL_PublicKeyImpl< GP >, and DL_PublicKeyImpl< DL_GroupParameters_EC< EC > >.
|
pure virtual |
Accesses the public precomputation.
GetPublicPrecomputation returns a const reference, while AccessPublicPrecomputation returns a non-const reference. Must be overridden in derived classes.
Implemented in DL_PublicKeyImpl< GP >, and DL_PublicKeyImpl< DL_GroupParameters_EC< EC > >.