#include <pubkey.h>
Inheritance diagram for VerifierWithRecoveryTemplate:

Public Methods | |
| bool | Verify (HashModule *messageAccumulator,const byte *sig)const |
| check whether sig is a valid signature for messageAccumulator, and delete messageAccumulator. More... | |
| HashModule* | NewLeftoverMessageAccumulator (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... | |
Definition at line 321 of file pubkey.h.
|
||||
|
create a new HashModule to accumulate leftover message.
Reimplemented from PK_VerifierWithRecovery. |
|
||||||
|
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. |
|
||||||
|
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. |
|
||||||
|
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. |
1.2.4 written by Dimitri van Heesch,
© 1997-2000