Security Scol plugin
Public Member Functions | List of all members
EMSA2Pad Class Reference

EMSA2 padding method. More...

#include <emsa2.h>

Inheritance diagram for EMSA2Pad:
EMSA2HashIdLookup< PK_DeterministicSignatureMessageEncodingMethod > PK_DeterministicSignatureMessageEncodingMethod PK_SignatureMessageEncodingMethod

Public Member Functions

CRYPTOPP_STATIC_CONSTEXPR const char *CRYPTOPP_API StaticAlgorithmName ()
 
size_t MinRepresentativeBitLength (size_t hashIdentifierLength, size_t digestLength) const
 
void ComputeMessageRepresentative (RandomNumberGenerator &rng, const byte *recoverableMessage, size_t recoverableMessageLength, HashTransformation &hash, HashIdentifier hashIdentifier, bool messageEmpty, byte *representative, size_t representativeBitLength) const
 
- Public Member Functions inherited from PK_DeterministicSignatureMessageEncodingMethod
bool VerifyMessageRepresentative (HashTransformation &hash, HashIdentifier hashIdentifier, bool messageEmpty, byte *representative, size_t representativeBitLength) const
 
- Public Member Functions inherited from PK_SignatureMessageEncodingMethod
virtual size_t MaxRecoverableLength (size_t representativeBitLength, size_t hashIdentifierLength, size_t digestLength) const
 
bool IsProbabilistic () const
 Determines whether an encoding method requires a random number generator.
 
bool AllowNonrecoverablePart () const
 
virtual bool RecoverablePartFirst () const
 
virtual void ProcessSemisignature (HashTransformation &hash, const byte *semisignature, size_t semisignatureLength) const
 
virtual void ProcessRecoverableMessage (HashTransformation &hash, const byte *recoverableMessage, size_t recoverableMessageLength, const byte *presignature, size_t presignatureLength, SecByteBlock &semisignature) const
 
virtual DecodingResult RecoverMessageFromRepresentative (HashTransformation &hash, HashIdentifier hashIdentifier, bool messageEmpty, byte *representative, size_t representativeBitLength, byte *recoveredMessage) const
 
virtual DecodingResult RecoverMessageFromSemisignature (HashTransformation &hash, HashIdentifier hashIdentifier, const byte *presignature, size_t presignatureLength, const byte *semisignature, size_t semisignatureLength, byte *recoveredMessage) const
 

Detailed Description

EMSA2 padding method.

Since
Crypto++ 5.0

Definition at line 71 of file emsa2.h.

Member Function Documentation

◆ ComputeMessageRepresentative()

void EMSA2Pad::ComputeMessageRepresentative ( RandomNumberGenerator rng,
const byte recoverableMessage,
size_t  recoverableMessageLength,
HashTransformation hash,
HashIdentifier  hashIdentifier,
bool  messageEmpty,
byte representative,
size_t  representativeBitLength 
) const
virtual

Implements PK_SignatureMessageEncodingMethod.

Definition at line 19 of file emsa2.cpp.

◆ MinRepresentativeBitLength()

size_t EMSA2Pad::MinRepresentativeBitLength ( size_t  hashIdentifierLength,
size_t  digestLength 
) const
inlinevirtual

Reimplemented from PK_SignatureMessageEncodingMethod.

Definition at line 76 of file emsa2.h.

◆ StaticAlgorithmName()

CRYPTOPP_STATIC_CONSTEXPR const char *CRYPTOPP_API EMSA2Pad::StaticAlgorithmName ( )
inline

Definition at line 74 of file emsa2.h.


The documentation for this class was generated from the following files: