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

SignerWithRecoveryTemplate< TF, H > Class Template Reference

#include <pubkey.h>

Inheritance diagram for SignerWithRecoveryTemplate< TF, H >:

SignatureSystemWithRecoveryBaseTemplate< H > PK_SignerWithRecovery PK_SignatureSchemeWithRecovery PK_SignatureSchemeWithRecovery PK_Signer PK_SignatureScheme PK_SignatureScheme PK_SignatureScheme PrivateKeyAlgorithm AsymmetricAlgorithm Algorithm Clonable List of all members.

Detailed Description

template<class TF, class H>
class SignerWithRecoveryTemplate< TF, H >

Definition at line 540 of file pubkey.h.

Public Types

typedef TF KeyClass

Public Member Functions

const KeyClass & GetKey () const
KeyClass & AccessKey ()
PrivateKeyAccessPrivateKey ()
void SignAndRestart (RandomNumberGenerator &rng, HashTransformation &messageAccumulator, byte *signature) const
 sign and restart messageAccumulator

const TrapdoorFunctionBoundsGetTrapdoorFunctionBounds () const
unsigned int SignatureLength () const
 signature length support by this object (as either input or output)

HashTransformationNewMessageAccumulator () const
 deprecated, please use PK_Signer::NewSignatureAccumulator or PK_Verifier::NewVerificationAccumulator instead

unsigned int MaximumRecoverableLength () const
 length of longest message that can be fully recovered

bool AllowLeftoverMessage () const
 whether or not messages longer than MaximumRecoverableLength() can be signed

virtual void Sign (RandomNumberGenerator &rng, HashTransformation *messageAccumulator, byte *signature) const
 sign and delete messageAccumulator (even in case of exception thrown)

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

virtual HashTransformationNewSignatureAccumulator () const
 create a new HashTransformation to accumulate the message to be signed

CryptoMaterialAccessMaterial ()
 returns a reference to the crypto material used by this object

const CryptoMaterialGetMaterial () const
 returns a const reference to the crypto material used by this object

virtual const PrivateKeyGetPrivateKey () const
void BERDecode (BufferedTransformation &bt)
 for backwards compatibility, calls AccessMaterial().Load(bt)

void DEREncode (BufferedTransformation &bt) const
 for backwards compatibility, calls GetMaterial().Save(bt)

virtual std::string AlgorithmName () const
 returns name of this algorithm, not universally implemented yet

virtual ClonableClone () const
 this is not implemented by most classes yet


Protected Member Functions

unsigned int PaddedBlockByteLength () const
unsigned int PaddedBlockBitLength () const


Member Function Documentation

template<class H>
bool SignatureSystemWithRecoveryBaseTemplate< H >::AllowLeftoverMessage  )  const [inline, virtual, inherited]
 

whether or not messages longer than MaximumRecoverableLength() can be signed

If this function returns false, any message longer than MaximumRecoverableLength() will be truncated for signature and will fail verification.

Implements PK_SignatureSchemeWithRecovery.

Definition at line 529 of file pubkey.h.

void PK_Signer::Sign RandomNumberGenerator rng,
HashTransformation messageAccumulator,
byte *  signature
const [virtual, inherited]
 

sign and delete messageAccumulator (even in case of exception thrown)

Precondition:
messageAccumulator was obtained by calling NewSignatureAccumulator()

HashTransformation::Final() has not been called on messageAccumulator

size of signature == SignatureLength()

Definition at line 619 of file cryptlib.cpp.

References PK_Signer::SignAndRestart().

Referenced by SignerFilter::Put2().

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

sign a message

Precondition:
size of signature == SignatureLength()

Definition at line 625 of file cryptlib.cpp.

References PK_Signer::NewSignatureAccumulator(), and PK_Signer::SignAndRestart().


The documentation for this class was generated from the following file:
Generated on Tue Jul 8 23:35:34 2003 for Crypto++ by doxygen 1.3.2