|
Crypto++
8.9
Free C++ class library of cryptographic schemes
|
Interface for Discrete Log (DL) public keys. More...
Inheritance diagram for DL_PublicKey< T >: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. More... | |
| void | AssignFrom (const NameValuePairs &source) |
| Initialize or reinitialize this key. More... | |
| virtual const Element & | GetPublicElement () const |
| Retrieves the public element. More... | |
| virtual void | SetPublicElement (const Element &y) |
| Sets the public element. More... | |
| virtual Element | ExponentiatePublicElement (const Integer &exponent) const |
| Exponentiates this element. More... | |
| virtual Element | CascadeExponentiateBaseAndPublicElement (const Integer &baseExp, const Integer &publicExp) const |
| Exponentiates an element. More... | |
| virtual const DL_FixedBasePrecomputation< T > & | GetPublicPrecomputation () const =0 |
| Accesses the public precomputation. More... | |
| virtual DL_FixedBasePrecomputation< T > & | AccessPublicPrecomputation ()=0 |
| Accesses the public precomputation. 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) public keys.
|
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 > >.