#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) |
| decode this object from a BufferedTransformation, using BER (Basic Encoding Rules) | |
| void | DEREncode (BufferedTransformation &bt) const |
| encode this object into a BufferedTransformation, using DER (Distinguished Encoding Rules) | |
| 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) |
| virtual void | BEREncode (BufferedTransformation &bt) const |
| encode this object into a BufferedTransformation, using BER | |
Static Public Member Functions | |
| static std::string __cdecl | StaticAlgorithmNamePrefix () |
Protected Member Functions | |
| Integer | ComputeGroupOrder (const Integer &modulus) const |
| virtual int | GetFieldType () const =0 |
| virtual unsigned int | GetDefaultSubgroupOrderSize (unsigned int modulusSize) const |
Definition at line 23 of file gfpcrypt.h.
| void DL_GroupParameters_IntegerBased::GenerateRandom | ( | RandomNumberGenerator & | rng, | |
| const NameValuePairs & | alg | |||
| ) |
parameters: (ModulusSize, SubgroupOrderSize (optional))
Definition at line 163 of file gfpcrypt.cpp.
References PrimeAndGenerator::Generate(), PrimeAndGenerator::Generator(), NameValuePairs::GetIntValue(), NameValuePairs::GetIntValueWithDefault(), NameValuePairs::GetValue(), NameValuePairs::GetValueWithDefault(), PrimeAndGenerator::Prime(), and PrimeAndGenerator::SubPrime().
| virtual void ASN1Object::BEREncode | ( | BufferedTransformation & | bt | ) | const [inline, virtual, inherited] |
encode this object into a BufferedTransformation, using BER
this may be useful if DEREncode() would be too inefficient
Definition at line 1597 of file cryptlib.h.
1.5.7.1