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

PK_Signer Class Reference

abstract base class for public-key signers. More...

#include <cryptlib.h>

Inheritance diagram for PK_Signer:

PK_SignatureSystem PK_SignerWithRecovery SignerTemplate SignerWithRecoveryTemplate ECSigner GDSASigner LUCELG_Signer NRSigner RWSigner DSAPrivateKey List of all members.

Public Methods

virtual void Sign (RandomNumberGenerator &rng,HashModule *messageAccumulator,byte *signature)const=0
 sign and delete messageAccumulator. More...

virtual void SignMessage (RandomNumberGenerator &rng,const byte *message,unsigned int messageLen,byte *signature)const
 sign a message. More...


Detailed Description

abstract base class for public-key signers.

A signer is also a private signature key. It contains both the key and the algorithm to perform the signature.

Definition at line 581 of file cryptlib.h.


Member Function Documentation

void PK_Signer::Sign ( RandomNumberGenerator & rng,
HashModule * messageAccumulator,
byte * signature ) const [pure virtual]
 

sign and delete messageAccumulator.

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

Reimplemented in SignerTemplate, and SignerWithRecoveryTemplate.

Referenced by SignerFilter::MessageEnd(), and SignMessage().

void PK_Signer::SignMessage ( RandomNumberGenerator & rng,
const byte * message,
unsigned int messageLen,
byte * signature ) const [virtual]
 

sign a message.

Precondition: size of signature == SignatureLength()

Definition at line 471 of file cryptlib.cpp.


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