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

PK_VerifierWithRecovery Class Reference

abstract base class for public-key verifiers with recovery. More...

#include <cryptlib.h>

Inheritance diagram for PK_VerifierWithRecovery:

PK_SignatureSystemWithRecovery PK_Verifier PK_SignatureSystem PK_SignatureSystem VerifierWithRecoveryTemplate List of all members.

Public Methods

virtual HashModuleNewLeftoverMessageAccumulator (const byte *signature)const=0
 create a new HashModule to accumulate leftover message.

virtual unsigned int PartialRecover (HashModule *leftoverMessageAccumulator,byte *recoveredMessage)const=0
 partially recover a message from its signature, return length of recoverd message, or 0 if signature is invalid. More...

virtual unsigned int Recover (const byte *signature,byte *recoveredMessage)const=0
 recover a message from its signature, return length of message, or 0 if signature is invalid. More...


Detailed Description

abstract base class for public-key verifiers with recovery.

A PK_VerifierWithRecovery can also be used the same way as a PK_Verifier, where the signature and the entire message is given to Verify() or VerifyMessage() as input.

Definition at line 660 of file cryptlib.h.


Member Function Documentation

unsigned int PK_VerifierWithRecovery::PartialRecover ( HashModule * messageAccumulator,
byte * recoveredMessage ) const [pure virtual]
 

partially recover a message from its signature, return length of recoverd message, or 0 if signature is invalid.

Preconditions: \begin{itemize} \item leftoverMessageAccumulator was obtained by calling NewLeftoverMessageAccumulator(signature) \item HashModule::Final() has not been called on leftoverMessageAccumulator \item length of signature == SignatureLength() \item size of recoveredMessage == MaximumRecoverableLength() \end{itemize}

Reimplemented in VerifierWithRecoveryTemplate.

Referenced by VerifierWithRecoveryTemplate::Recover().

unsigned int PK_VerifierWithRecovery::Recover ( const byte * signature,
byte * recoveredMessage ) const [pure virtual]
 

recover a message from its signature, return length of message, or 0 if signature is invalid.

This function should be equivalent to PartialRecover(NewLeftoverMessageAccumulator(signature), recoveredMessage). Preconditions: \begin{itemize} \item length of signature == SignatureLength() \item size of recoveredMessage == MaximumRecoverableLength() \end{itemize}

Reimplemented in VerifierWithRecoveryTemplate.


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