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

VerifierWithRecoveryTemplate Class Template Reference

. More...

#include <pubkey.h>

Inheritance diagram for VerifierWithRecoveryTemplate:

PK_VerifierWithRecovery SignatureSystemWithRecoveryBaseTemplate PK_SignatureSystemWithRecovery PK_Verifier PK_SignatureSystemWithRecovery PublicKeyBaseTemplate PK_SignatureSystem PK_SignatureSystem PK_SignatureSystem List of all members.

Public Methods

bool Verify (HashModule *messageAccumulator,const byte *sig)const
 check whether sig is a valid signature for messageAccumulator, and delete messageAccumulator. More...

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

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

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


Detailed Description

template<class F, class H> class VerifierWithRecoveryTemplate

.

Definition at line 321 of file pubkey.h.


Member Function Documentation

template<class F, class H>
HashModule * VerifierWithRecoveryTemplate< F,H >::NewLeftoverMessageAccumulator ( const byte * signature ) const [virtual]
 

create a new HashModule to accumulate leftover message.

Reimplemented from PK_VerifierWithRecovery.

Definition at line 351 of file pubkey.h.

template<class F, class H>
unsigned int VerifierWithRecoveryTemplate< F,H >::PartialRecover ( HashModule * messageAccumulator,
byte * recoveredMessage ) const [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 from PK_VerifierWithRecovery.

Definition at line 359 of file pubkey.h.

template<class F, class H>
unsigned int VerifierWithRecoveryTemplate< F,H >::Recover ( const byte * signature,
byte * recoveredMessage ) const [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 from PK_VerifierWithRecovery.

Definition at line 366 of file pubkey.h.

template<class F, class H>
bool VerifierWithRecoveryTemplate< F,H >::Verify ( HashModule * messageAccumulator,
const byte * signature ) const [virtual]
 

check whether sig is a valid signature for messageAccumulator, and delete messageAccumulator.

Preconditions: \begin{itemize} \item messageAccumulator was obtained by calling NewMessageAccumulator() \item HashModule::Final() has not been called on messageAccumulator \item length of signature == SignatureLength() \end{itemize}

Reimplemented from PK_Verifier.

Definition at line 342 of file pubkey.h.


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