Security Scol plugin
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:
PK_EncryptionMessageEncodingMethod OAEP< H, MGF >

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)
 
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
 

Protected Member Functions

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

Detailed Description

OAEP padding base class.

Since
Crypto++ 2.1

Definition at line 18 of file oaep.h.

Member Function Documentation

◆ MaxUnpaddedLength()

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.

◆ Pad()

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.

◆ ParameterSupported()

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

Reimplemented from PK_EncryptionMessageEncodingMethod.

Definition at line 21 of file oaep.h.

◆ Unpad()

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.


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