#include <cryptlib.h>
Inheritance diagram for PK_SignerWithRecovery:
Definition at line 1320 of file cryptlib.h.
Public Member Functions | |
virtual unsigned int | MaximumRecoverableLength () const=0 |
length of longest message that can be fully recovered | |
virtual bool | AllowLeftoverMessage () const=0 |
whether or not messages longer than MaximumRecoverableLength() can be signed | |
virtual unsigned int | SignatureLength () const=0 |
signature length support by this object (as either input or output) | |
virtual HashTransformation * | NewMessageAccumulator () const=0 |
deprecated, please use PK_Signer::NewSignatureAccumulator or PK_Verifier::NewVerificationAccumulator instead | |
virtual void | Sign (RandomNumberGenerator &rng, HashTransformation *messageAccumulator, byte *signature) const |
sign and delete messageAccumulator (even in case of exception thrown) | |
virtual void | SignAndRestart (RandomNumberGenerator &rng, HashTransformation &messageAccumulator, byte *signature) const=0 |
sign and restart messageAccumulator | |
virtual void | SignMessage (RandomNumberGenerator &rng, const byte *message, unsigned int messageLen, byte *signature) const |
sign a message | |
virtual HashTransformation * | NewSignatureAccumulator () const |
create a new HashTransformation to accumulate the message to be signed | |
CryptoMaterial & | AccessMaterial () |
returns a reference to the crypto material used by this object | |
const CryptoMaterial & | GetMaterial () const |
returns a const reference to the crypto material used by this object | |
virtual PrivateKey & | AccessPrivateKey ()=0 |
virtual const PrivateKey & | GetPrivateKey () 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 Clonable * | Clone () const |
this is not implemented by most classes yet |
|
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. Implemented in SignatureSystemWithRecoveryBaseTemplate< H >. |
|
sign and delete messageAccumulator (even in case of exception thrown)
Definition at line 619 of file cryptlib.cpp. References PK_Signer::SignAndRestart(). Referenced by SignerFilter::Put2(). |
|
sign a message
Definition at line 625 of file cryptlib.cpp. References PK_Signer::NewSignatureAccumulator(), and PK_Signer::SignAndRestart(). |