|
Crypto++
|
_ More...
#include <pubkey.h>
Public Member Functions | |
| void | InputRecoverableMessage (PK_MessageAccumulator &messageAccumulator, const byte *recoverableMessage, size_t recoverableMessageLength) const |
| size_t | SignAndRestart (RandomNumberGenerator &rng, PK_MessageAccumulator &messageAccumulator, byte *signature, bool restart=true) const |
| sign and restart messageAccumulator More... | |
| size_t | SignatureLength () const |
| size_t | MaxRecoverableLength () const |
| size_t | MaxRecoverableLengthFromSignatureLength (size_t signatureLength) const |
| bool | IsProbabilistic () const |
| bool | AllowNonrecoverablePart () const |
| bool | RecoverablePartFirst () const |
| virtual PK_MessageAccumulator * | NewSignatureAccumulator (RandomNumberGenerator &rng) const =0 |
| create a new HashTransformation to accumulate the message to be signed | |
| virtual size_t | Sign (RandomNumberGenerator &rng, PK_MessageAccumulator *messageAccumulator, byte *signature) const |
| sign and delete messageAccumulator (even in case of exception thrown) More... | |
| virtual size_t | SignMessage (RandomNumberGenerator &rng, const byte *message, size_t messageLen, byte *signature) const |
| sign a message More... | |
| virtual size_t | SignMessageWithRecovery (RandomNumberGenerator &rng, const byte *recoverableMessage, size_t recoverableMessageLength, const byte *nonrecoverableMessage, size_t nonrecoverableMessageLength, byte *signature) const |
| sign a recoverable message More... | |
| virtual size_t | MaxSignatureLength (size_t recoverablePartLength=0) const |
| maximum signature length produced for a given length of recoverable message part | |
| virtual bool | SignatureUpfront () const |
| if this function returns true, during verification you must input the signature before the message, otherwise you can input it at anytime */ | |
| 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 | |
Protected Types | |
|
typedef RandomizedTrapdoorFunctionInverse | TrapdoorFunctionInterface |
|
typedef PK_SignatureMessageEncodingMethod | MessageEncodingInterface |
Protected Member Functions | |
| size_t | MessageRepresentativeLength () const |
| size_t | MessageRepresentativeBitLength () const |
| virtual HashIdentifier | GetHashIdentifier () const =0 |
| virtual size_t | GetDigestSize () const =0 |
|
virtual const TrapdoorFunctionBounds & | GetTrapdoorFunctionBounds () const =0 |
|
virtual const TrapdoorFunctionInterface & | GetTrapdoorFunctionInterface () const =0 |
|
virtual const MessageEncodingInterface & | GetMessageEncodingInterface () const =0 |
|
virtual |
sign and restart messageAccumulator
Implements PK_Signer.
|
virtualinherited |
sign and delete messageAccumulator (even in case of exception thrown)
|
virtualinherited |
|
virtualinherited |
sign a recoverable message
1.8.6