#include <gfpcrypt.h>
Inheritance diagram for DL_GroupParameters_DSA:
Definition at line 362 of file gfpcrypt.h.
Public Types | |
typedef ModExpPrecomputation::Element | Element |
typedef GROUP_PRECOMP | GroupPrecomputation |
typedef BASE_PRECOMP | BasePrecomputation |
Public Member Functions | |
bool | ValidateGroup (RandomNumberGenerator &rng, unsigned int level) const |
void | GenerateRandom (RandomNumberGenerator &rng, const NameValuePairs &alg) |
bool | IsIdentity (const Integer &element) const |
void | SimultaneousExponentiate (Element *results, const Element &base, const Integer *exponents, unsigned int exponentsCount) const |
bool | GetVoidValue (const char *name, const std::type_info &valueType, void *pValue) const |
Element | MultiplyElements (const Element &a, const Element &b) const |
Element | CascadeExponentiate (const Element &element1, const Integer &exponent1, const Element &element2, const Integer &exponent2) const |
void | AssignFrom (const NameValuePairs &source) |
const DL_FixedBasePrecomputation< Element > & | GetBasePrecomputation () const |
DL_FixedBasePrecomputation< Element > & | AccessBasePrecomputation () |
const Integer & | GetModulus () const |
const Integer & | GetGenerator () const |
void | SetModulusAndSubgroupGenerator (const Integer &p, const Integer &g) |
bool | operator== (const DL_GroupParameters_IntegerBasedImpl< ModExpPrecomputation, DL_FixedBasePrecomputationImpl< typenameModExpPrecomputation::Element > > &rhs) const |
bool | operator!= (const DL_GroupParameters_IntegerBasedImpl< ModExpPrecomputation, DL_FixedBasePrecomputationImpl< typenameModExpPrecomputation::Element > > &rhs) const |
const DL_GroupPrecomputation< Element > & | GetGroupPrecomputation () const |
Protected Member Functions | |
int | GetFieldType () const |
Protected Attributes | |
GROUP_PRECOMP | m_groupPrecomputation |
BASE_PRECOMP | m_gpc |
|
also checks that the lengths of p and q are allowed by the DSA standard Definition at line 58 of file gfpcrypt.cpp. |
|
ModulusSize must be between 512 and 1024, and divisible by 64 Definition at line 23 of file gfpcrypt.cpp. References RandomNumberGenerator::GenerateBlock(), DSA::GeneratePrimes(), NameValuePairs::GetIntValue(), NameValuePairs::GetValue(), and NameValuePairs::GetValueWithDefault(). |