#include <nr.h>
Inheritance diagram for NRDigestVerifier:

Public Methods | |
| NRDigestVerifier (const Integer &p,const Integer &q,const Integer &g,const Integer &y) | |
| NRDigestVerifier (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 Integer& | GetModulus ()const |
| const Integer& | GetSubgroupSize ()const |
| const Integer& | GetGenerator ()const |
| const Integer& | GetPublicResidue ()const |
Protected Methods | |
| NRDigestVerifier () | |
| bool | RawVerify (const Integer &m,const Integer &a,const Integer &b)const |
| 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 |
Definition at line 15 of file nr.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
retrieve previously saved precomputation.
Reimplemented from PK_Precomputation. |
|
|
|
|
|
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. |
|
|
|
|
|
save precomputation for later use.
Reimplemented from PK_Precomputation. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.4 written by Dimitri van Heesch,
© 1997-2000