\CryptoManana\Core\Interfaces\MessageEncryptionBlockOperationsInterface

Interface BlockOperationsInterface - Interface for block cipher capabilities and operations.

Summary

Methods
Constants
setInitializationVector()
getInitializationVector()
setBlockOperationMode()
getBlockOperationMode()
setPaddingStandard()
getPaddingStandard()
CBC_MODE
CFB_MODE
OFB_MODE
CTR_MODE
ECB_MODE
ZERO_PADDING
PKCS7_PADDING
No protected methods found
N/A
No private methods found
N/A

Constants

CBC_MODE

CBC_MODE

The Cipher Block Chaining (CBC) mode of operation representation.

CFB_MODE

CFB_MODE

The Cipher Feedback (CFB) mode of operation representation.

OFB_MODE

OFB_MODE

The Output Feedback (OFB) mode of operation representation.

CTR_MODE

CTR_MODE

The Counter (CTR) mode of operation representation.

ECB_MODE

ECB_MODE

The Electronic Codebook (ECB) mode of operation representation.

ZERO_PADDING

ZERO_PADDING

The zero-padding (non-standard) representation.

PKCS7_PADDING

PKCS7_PADDING

The PKCS#7 (Cryptographic Message Syntax Standard) padding representation.

Methods

setInitializationVector()

setInitializationVector(string  $iv) 

Setter for the initialization vector (IV) string property.

Parameters

string $iv

The initialization vector (IV) string.

Throws

\Exception

Validation errors.

getInitializationVector()

getInitializationVector() : string

Getter for the initialization vector (IV) string property.

Returns

string —

The initialization vector (IV) string.

setBlockOperationMode()

setBlockOperationMode(string  $mode) 

Setter for the block encryption operation mode string property.

Parameters

string $mode

The block operation mode string.

Throws

\Exception

Validation errors.

getBlockOperationMode()

getBlockOperationMode() : string

Getter for the block encryption operation mode string property.

Returns

string —

The block operation mode string.

setPaddingStandard()

setPaddingStandard(integer  $padding) 

Setter for the final block padding operation property.

Parameters

integer $padding

The padding standard integer code value.

Throws

\Exception

Validation errors.

getPaddingStandard()

getPaddingStandard() : integer

Getter for the final block padding operation property.

Returns

integer —

The padding standard integer code value.