\CryptoManana\Core\Traits\MessageEncryptionAsymmetricPaddingTrait

Trait AsymmetricPaddingTrait - Reusable implementation of `AsymmetricPaddingInterface`.

Summary

Methods
Properties
Constants
setPaddingStandard()
getPaddingStandard()
getPaddingReservedSize()
enableChunkProcessing()
disableChunkProcessing()
$$padding
$$useChunks
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$$padding

$$padding : integer

The asymmetric data padding operation property.

Type

integer

$$useChunks

$$useChunks : boolean

Flag for enabling/disabling data processing via chunks.

Type

boolean

Methods

setPaddingStandard()

setPaddingStandard(integer  $padding) : $this

Setter for the asymmetric data padding operation property.

Parameters

integer $padding

The padding standard integer code value.

Throws

\Exception

Validation errors.

Returns

$this —

The asymmetric encryption algorithm object.

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() : $this

Enable long data processing via small chunks.

Returns

$this —

The asymmetric encryption algorithm object.

disableChunkProcessing()

disableChunkProcessing() : $this

Disable long data processing via small chunks.

Returns

$this —

The asymmetric encryption algorithm object.