Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

GDSADigestVerifier Class Reference

DSA-1363. More...

#include <dsa.h>

Inheritance diagram for GDSADigestVerifier:

PK_WithPrecomputation PK_Precomputation GDSADigestSigner List of all members.

Public Methods

 GDSADigestVerifier (const Integer &p,const Integer &q,const Integer &g,const Integer &y)
 GDSADigestVerifier (BufferedTransformation &bt)
void Precompute (unsigned int precomputationStorage=16)
void LoadPrecomputation (BufferedTransformation &storedPrecomputation)
 retrieve previously saved precomputation. More...

void SavePrecomputation (BufferedTransformation &storedPrecomputation)const
 save precomputation for later use. More...

void DEREncode (BufferedTransformation &bt)const
bool VerifyDigest (const byte *digest,unsigned int digestLen,const byte *signature)const
unsigned int MaxDigestLength ()const
unsigned int DigestSignatureLength ()const
const IntegerGetModulus ()const
const IntegerGetSubgroupSize ()const
const IntegerGetGenerator ()const
const IntegerGetPublicResidue ()const
bool RawVerify (const Integer &m,const Integer &a,const Integer &b)const

Protected Methods

 GDSADigestVerifier ()
unsigned int ExponentBitLength ()const
Integer EncodeDigest (const byte *digest,unsigned int digestLen)const

Protected Attributes

Integer m_p
Integer m_q
Integer m_g
Integer m_y
ModExpPrecomputation m_gpc
ModExpPrecomputation m_ypc

Detailed Description

DSA-1363.

GDSA stands for generalized DSA, where the key length is allowed to be greater than 1024 and any message digest function can be used. Standard DSA is at the bottom of this file.

Definition at line 28 of file dsa.h.


Constructor & Destructor Documentation

GDSADigestVerifier::GDSADigestVerifier ( const Integer & p,
const Integer & q,
const Integer & g,
const Integer & y )
 

Definition at line 74 of file dsa.cpp.

GDSADigestVerifier::GDSADigestVerifier ( BufferedTransformation & bt )
 

Definition at line 109 of file dsa.cpp.

GDSADigestVerifier::GDSADigestVerifier ( ) [inline, protected]
 

Definition at line 53 of file dsa.h.


Member Function Documentation

void GDSADigestVerifier::DEREncode ( BufferedTransformation & bt ) const
 

Definition at line 142 of file dsa.cpp.

unsigned int GDSADigestVerifier::DigestSignatureLength ( ) const [inline]
 

Definition at line 42 of file dsa.h.

Integer GDSADigestVerifier::EncodeDigest ( const byte * digest,
unsigned int digestLen ) const [protected]
 

Definition at line 99 of file dsa.cpp.

unsigned int GDSADigestVerifier::ExponentBitLength ( ) const [protected]
 

Definition at line 104 of file dsa.cpp.

const Integer & GDSADigestVerifier::GetGenerator ( ) const [inline]
 

Definition at line 46 of file dsa.h.

const Integer & GDSADigestVerifier::GetModulus ( ) const [inline]
 

Definition at line 44 of file dsa.h.

const Integer & GDSADigestVerifier::GetPublicResidue ( ) const [inline]
 

Definition at line 47 of file dsa.h.

const Integer & GDSADigestVerifier::GetSubgroupSize ( ) const [inline]
 

Definition at line 45 of file dsa.h.

void GDSADigestVerifier::LoadPrecomputation ( BufferedTransformation & bt ) [virtual]
 

retrieve previously saved precomputation.

Reimplemented from PK_Precomputation.

Definition at line 87 of file dsa.cpp.

unsigned int GDSADigestVerifier::MaxDigestLength ( ) const [inline]
 

Definition at line 41 of file dsa.h.

void GDSADigestVerifier::Precompute ( unsigned int precomputationStorage = 16 ) [virtual]
 

The exact semantics of Precompute() is varies, but typically it means calculate a table of n objects that can be used later to speed up computation.

Reimplemented from PK_Precomputation.

Definition at line 81 of file dsa.cpp.

bool GDSADigestVerifier::RawVerify ( const Integer & h,
const Integer & r,
const Integer & s ) const
 

Definition at line 174 of file dsa.cpp.

void GDSADigestVerifier::SavePrecomputation ( BufferedTransformation & bt ) const [virtual]
 

save precomputation for later use.

Reimplemented from PK_Precomputation.

Definition at line 93 of file dsa.cpp.

bool GDSADigestVerifier::VerifyDigest ( const byte * digest,
unsigned int digestLen,
const byte * signature ) const
 

Definition at line 163 of file dsa.cpp.


Member Data Documentation

Integer GDSADigestVerifier::m_g [protected]
 

Definition at line 57 of file dsa.h.

ModExpPrecomputation GDSADigestVerifier::m_gpc [protected]
 

Definition at line 58 of file dsa.h.

Integer GDSADigestVerifier::m_p [protected]
 

Definition at line 57 of file dsa.h.

Integer GDSADigestVerifier::m_q [protected]
 

Definition at line 57 of file dsa.h.

Integer GDSADigestVerifier::m_y [protected]
 

Definition at line 57 of file dsa.h.

ModExpPrecomputation GDSADigestVerifier::m_ypc [protected]
 

Definition at line 58 of file dsa.h.


The documentation for this class was generated from the following files:
Generated at Mon Jan 15 01:16:49 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000