Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

DL_GroupParameters_DSA Class Reference

#include <gfpcrypt.h>

Inheritance diagram for DL_GroupParameters_DSA:

DL_GroupParameters_GFP DL_GroupParameters_IntegerBasedImpl< ModExpPrecomputation > DL_GroupParametersImpl< GROUP_PRECOMP, BASE_PRECOMP, BASE > List of all members.

Detailed Description

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 IntegerGetModulus () const
const IntegerGetGenerator () 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


Member Function Documentation

bool DL_GroupParameters_DSA::ValidateGroup RandomNumberGenerator rng,
unsigned int  level
const
 

also checks that the lengths of p and q are allowed by the DSA standard

Definition at line 58 of file gfpcrypt.cpp.

void DL_GroupParameters_DSA::GenerateRandom RandomNumberGenerator rng,
const NameValuePairs alg
 

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().


The documentation for this class was generated from the following files:
Generated on Sun Mar 14 20:44:34 2004 for Crypto++ by doxygen 1.3.6-20040222