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

PKCS #1 v1.5 Encryption Padding Scheme. More...

#include <pkcspad.h>

Inheritance diagram for PKCS_EncryptionPaddingScheme:
PK_EncryptionMessageEncodingMethod

Public Member Functions

CRYPTOPP_STATIC_CONSTEXPR const char * StaticAlgorithmName ()
 
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
 
- Public Member Functions inherited from PK_EncryptionMessageEncodingMethod
virtual bool ParameterSupported (const char *name) const
 

Detailed Description

PKCS #1 v1.5 Encryption Padding Scheme.

See also
EME-PKCS1-v1_5

Definition at line 23 of file pkcspad.h.

Member Function Documentation

◆ MaxUnpaddedLength()

size_t PKCS_EncryptionPaddingScheme::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 58 of file pkcspad.cpp.

◆ Pad()

void PKCS_EncryptionPaddingScheme::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 63 of file pkcspad.cpp.

◆ StaticAlgorithmName()

CRYPTOPP_STATIC_CONSTEXPR const char * PKCS_EncryptionPaddingScheme::StaticAlgorithmName ( )
inline

Definition at line 26 of file pkcspad.h.

◆ Unpad()

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

Implements PK_EncryptionMessageEncodingMethod.

Definition at line 86 of file pkcspad.cpp.


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