#include <cryptlib.h>
Inheritance diagram for PK_VerifierWithRecovery:

Public Methods | |
| virtual HashModule* | NewLeftoverMessageAccumulator (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... | |
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.
|
|
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(). |
|
|
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. |
1.2.4 written by Dimitri van Heesch,
© 1997-2000