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

OAEP padding base class. More...

#include <oaep.h>

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

Public Member Functions

bool ParameterSupported (const char *name) const
 
size_t MaxUnpaddedLength (size_t paddedLength) const
 max size of unpadded message in bytes, given max size of padded message in bits (1 less than size of modulus) More...
 
void Pad (RandomNumberGenerator &rng, const byte *raw, size_t inputLength, byte *padded, size_t paddedLength, const NameValuePairs &parameters) const
 
DecodingResult Unpad (const byte *padded, size_t paddedLength, byte *raw, const NameValuePairs &parameters) const
 
- Public Member Functions inherited from PK_EncryptionMessageEncodingMethod
virtual ~PK_EncryptionMessageEncodingMethod ()
 

Protected Member Functions

virtual unsigned int DigestSize () const =0
 
virtual HashTransformationNewHash () const =0
 
virtual MaskGeneratingFunctionNewMGF () const =0
 

Detailed Description

OAEP padding base class.

Definition at line 11 of file oaep.h.

Member Function Documentation

virtual unsigned int OAEP_Base::DigestSize ( ) const
protectedpure virtual

Implemented in OAEP< H, MGF >.

size_t OAEP_Base::MaxUnpaddedLength ( size_t  paddedLength) const
virtual

max size of unpadded message in bytes, given max size of padded message in bits (1 less than size of modulus)

Implements PK_EncryptionMessageEncodingMethod.

Definition at line 15 of file oaep.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual HashTransformation* OAEP_Base::NewHash ( ) const
protectedpure virtual

Implemented in OAEP< H, MGF >.

Here is the caller graph for this function:

virtual MaskGeneratingFunction* OAEP_Base::NewMGF ( ) const
protectedpure virtual

Implemented in OAEP< H, MGF >.

Here is the caller graph for this function:

void OAEP_Base::Pad ( RandomNumberGenerator rng,
const byte raw,
size_t  inputLength,
byte padded,
size_t  paddedLength,
const NameValuePairs parameters 
) const
virtual

Implements PK_EncryptionMessageEncodingMethod.

Definition at line 20 of file oaep.cpp.

Here is the call graph for this function:

bool OAEP_Base::ParameterSupported ( const char *  name) const
inlinevirtual

Reimplemented from PK_EncryptionMessageEncodingMethod.

Definition at line 14 of file oaep.h.

Here is the call graph for this function:

DecodingResult OAEP_Base::Unpad ( const byte padded,
size_t  paddedLength,
byte raw,
const NameValuePairs parameters 
) const
virtual

Implements PK_EncryptionMessageEncodingMethod.

Definition at line 53 of file oaep.cpp.

Here is the call graph for this function:


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