|
Crypto++
|
_ More...
#include <gfpcrypt.h>
Public Member Functions | |
| void | Initialize (const DL_GroupParameters_IntegerBased ¶ms) |
| void | Initialize (RandomNumberGenerator &rng, unsigned int pbits) |
| void | Initialize (const Integer &p, const Integer &g) |
| void | Initialize (const Integer &p, const Integer &q, const Integer &g) |
| void | BERDecode (BufferedTransformation &bt) |
| void | DEREncode (BufferedTransformation &bt) const |
| void | GenerateRandom (RandomNumberGenerator &rng, const NameValuePairs &alg) |
| bool | GetVoidValue (const char *name, const std::type_info &valueType, void *pValue) const |
| void | AssignFrom (const NameValuePairs &source) |
| const Integer & | GetSubgroupOrder () const |
| Integer | GetGroupOrder () const |
| bool | ValidateGroup (RandomNumberGenerator &rng, unsigned int level) const |
| bool | ValidateElement (unsigned int level, const Integer &element, const DL_FixedBasePrecomputation< Integer > *precomp) const |
| bool | FastSubgroupCheckAvailable () const |
| void | EncodeElement (bool reversible, const Element &element, byte *encoded) const |
| unsigned int | GetEncodedElementSize (bool reversible) const |
| Integer | DecodeElement (const byte *encoded, bool checkForGroupMembership) const |
| Integer | ConvertElementToInteger (const Element &element) const |
| Integer | GetMaxExponent () const |
| OID | GetAlgorithmID () const |
| virtual const Integer & | GetModulus () const =0 |
| virtual void | SetModulusAndSubgroupGenerator (const Integer &p, const Integer &g)=0 |
| void | SetSubgroupOrder (const Integer &q) |
| void | Save (BufferedTransformation &bt) const |
| void | Load (BufferedTransformation &bt) |
Static Public Member Functions | |
| static std::string | StaticAlgorithmNamePrefix () |
Protected Member Functions | |
| Integer | ComputeGroupOrder (const Integer &modulus) const |
| virtual int | GetFieldType () const =0 |
| virtual unsigned int | GetDefaultSubgroupOrderSize (unsigned int modulusSize) const |
_
| void DL_GroupParameters_IntegerBased::GenerateRandom | ( | RandomNumberGenerator & | rng, |
| const NameValuePairs & | alg | ||
| ) |
parameters: (ModulusSize, SubgroupOrderSize (optional))
Definition at line 163 of file gfpcrypt.cpp.
References NameValuePairs::GetValue(), NameValuePairs::GetValueWithDefault(), NameValuePairs::GetIntValue(), and NameValuePairs::GetIntValueWithDefault().
1.7.5