Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
PSSR_MEM_Base Class Referenceabstract

PSSR Message Encoding Method interface. More...

#include <pssr.h>

Inheritance diagram for PSSR_MEM_Base:
[legend]
Collaboration diagram for PSSR_MEM_Base:
[legend]

Public Member Functions

virtual ~PSSR_MEM_Base ()
 
- Public Member Functions inherited from PK_RecoverableSignatureMessageEncodingMethod
bool VerifyMessageRepresentative (HashTransformation &hash, HashIdentifier hashIdentifier, bool messageEmpty, byte *representative, size_t representativeBitLength) const
 
- Public Member Functions inherited from PK_SignatureMessageEncodingMethod
virtual ~PK_SignatureMessageEncodingMethod ()
 
bool IsProbabilistic () const
 Determines whether an encoding method requires a random number generator. More...
 
bool AllowNonrecoverablePart () 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 RecoverMessageFromSemisignature (HashTransformation &hash, HashIdentifier hashIdentifier, const byte *presignature, size_t presignatureLength, const byte *semisignature, size_t semisignatureLength, byte *recoveredMessage) const
 

Protected Member Functions

virtual bool AllowRecovery () const =0
 
virtual size_t SaltLen (size_t hashLen) const =0
 
virtual size_t MinPadLen (size_t hashLen) const =0
 
virtual const MaskGeneratingFunctionGetMGF () const =0
 

Private Member Functions

size_t MinRepresentativeBitLength (size_t hashIdentifierLength, size_t digestLength) const
 
size_t MaxRecoverableLength (size_t representativeBitLength, size_t hashIdentifierLength, size_t digestLength) const
 
bool IsProbabilistic () const
 
bool AllowNonrecoverablePart () const
 
bool RecoverablePartFirst () const
 
void ComputeMessageRepresentative (RandomNumberGenerator &rng, const byte *recoverableMessage, size_t recoverableMessageLength, HashTransformation &hash, HashIdentifier hashIdentifier, bool messageEmpty, byte *representative, size_t representativeBitLength) const
 
DecodingResult RecoverMessageFromRepresentative (HashTransformation &hash, HashIdentifier hashIdentifier, bool messageEmpty, byte *representative, size_t representativeBitLength, byte *recoverableMessage) const
 

Detailed Description

PSSR Message Encoding Method interface.

Definition at line 20 of file pssr.h.

Constructor & Destructor Documentation

virtual PSSR_MEM_Base::~PSSR_MEM_Base ( )
inlinevirtual

Definition at line 23 of file pssr.h.

Member Function Documentation

bool PSSR_MEM_Base::AllowNonrecoverablePart ( ) const
private

Definition at line 37 of file pssr.cpp.

virtual bool PSSR_MEM_Base::AllowRecovery ( ) const
protectedpure virtual

Here is the caller graph for this function:

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

Implements PK_SignatureMessageEncodingMethod.

Definition at line 47 of file pssr.cpp.

Here is the call graph for this function:

virtual const MaskGeneratingFunction& PSSR_MEM_Base::GetMGF ( ) const
protectedpure virtual

Here is the caller graph for this function:

bool PSSR_MEM_Base::IsProbabilistic ( ) const
private

Definition at line 32 of file pssr.cpp.

Here is the call graph for this function:

size_t PSSR_MEM_Base::MaxRecoverableLength ( size_t  representativeBitLength,
size_t  hashIdentifierLength,
size_t  digestLength 
) const
privatevirtual

Reimplemented from PK_SignatureMessageEncodingMethod.

Definition at line 25 of file pssr.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual size_t PSSR_MEM_Base::MinPadLen ( size_t  hashLen) const
protectedpure virtual

Here is the caller graph for this function:

size_t PSSR_MEM_Base::MinRepresentativeBitLength ( size_t  hashIdentifierLength,
size_t  digestLength 
) const
privatevirtual

Reimplemented from PK_SignatureMessageEncodingMethod.

Definition at line 18 of file pssr.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool PSSR_MEM_Base::RecoverablePartFirst ( ) const
privatevirtual

Reimplemented from PK_SignatureMessageEncodingMethod.

Definition at line 42 of file pssr.cpp.

DecodingResult PSSR_MEM_Base::RecoverMessageFromRepresentative ( HashTransformation hash,
HashIdentifier  hashIdentifier,
bool  messageEmpty,
byte representative,
size_t  representativeBitLength,
byte recoverableMessage 
) const
privatevirtual

Reimplemented from PK_SignatureMessageEncodingMethod.

Definition at line 96 of file pssr.cpp.

Here is the call graph for this function:

virtual size_t PSSR_MEM_Base::SaltLen ( size_t  hashLen) const
protectedpure virtual

Here is the caller graph for this function:


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