\CryptoManana\Core\Interfaces\MessageEncryptionAsymmetricPaddingInterface

Interface AsymmetricPaddingInterface - Interface for asymmetric padding capabilities and operations.

Summary

Methods
Constants
setPaddingStandard()
getPaddingStandard()
getPaddingReservedSize()
enableChunkProcessing()
disableChunkProcessing()
PKCS1_PADDING
OAEP_PADDING
No protected methods found
N/A
No private methods found
N/A

Constants

PKCS1_PADDING

PKCS1_PADDING

The PKCS#1 (v1.5, RSA Cryptography Standard) padding representation.

OAEP_PADDING

OAEP_PADDING

The OAEP (Optimal Asymmetric Encryption Padding) padding representation.

Methods

setPaddingStandard()

setPaddingStandard(integer  $padding) 

Setter for the asymmetric data padding operation property.

Parameters

integer $padding

The padding standard integer code value.

Throws

\Exception

Validation errors.

getPaddingStandard()

getPaddingStandard() : string

Getter for the asymmetric data padding operation property.

Returns

string —

The padding standard integer code value.

getPaddingReservedSize()

getPaddingReservedSize() : integer

Getter for the minimum size of the padding bytes that are required/reserved by the algorithm.

Returns

integer —

The minimum reserved size of the padding bytes.

enableChunkProcessing()

enableChunkProcessing() 

Enable long data processing via small chunks.

disableChunkProcessing()

disableChunkProcessing() 

Disable long data processing via small chunks.