$keyExpansionSource
$keyExpansionSource : \CryptoManana\Core\Abstractions\MessageDigestion\AbstractKeyMaterialDerivationFunction|null
The key expansion derivation algorithm service property storage.
Class MultipleEncryption - The multiple encryption protocol object.
$keyExpansionSource : \CryptoManana\Core\Abstractions\MessageDigestion\AbstractKeyMaterialDerivationFunction|null
The key expansion derivation algorithm service property storage.
$symmetricCipherSource : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|null
The message symmetric encryption algorithm service property storage.
setKeyExpansionFunction(\CryptoManana\Core\Abstractions\MessageDigestion\AbstractKeyMaterialDerivationFunction $hasher) : $this
Setter for the key expansion derivation service.
\CryptoManana\Core\Abstractions\MessageDigestion\AbstractKeyMaterialDerivationFunction | $hasher | The key expansion derivation service or null. |
The container object.
getKeyExpansionFunction() : \CryptoManana\Core\Abstractions\MessageDigestion\AbstractKeyMaterialDerivationFunction|null
Getter for the key expansion derivation service.
The currently injected key expansion derivation service or null.
setSymmetricCipher(\CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface $cipher) : $this
Setter for the message symmetric encryption service.
\CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface | $cipher | The message symmetric encryption service. |
The container object.
getSymmetricCipher() : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null
Getter for the message symmetric encryption service.
The currently injected message encryption service or null.
__construct(\CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|null $cipher = null, \CryptoManana\Core\Abstractions\MessageDigestion\AbstractKeyMaterialDerivationFunction|null $hasher = null)
Container constructor.
\CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|null | $cipher | the message symmetric encryption service. |
\CryptoManana\Core\Abstractions\MessageDigestion\AbstractKeyMaterialDerivationFunction|null | $hasher | The key expansion derivation service. |
Initialization validation.
multipleEncryptData(string $plainData, integer $iterations = 2) : string
Encrypts the given plain data multiple times with different extracted keys.
string | $plainData | The plain input string. |
integer | $iterations | The number of internal iterations to perform. |
Validation errors.
The cipher/encrypted data.
multipleDecryptData(string $cipherData, integer $iterations = 2) : string
Decrypts the given cipher data multiple times with different extracted keys.
string | $cipherData | The encrypted input string. |
integer | $iterations | The number of internal iterations to perform. |
Validation errors.
The decrypted/plain data.
generateProcessingConfiguration(integer $iterations, boolean|integer|null $direction = true) : array
Internal method for generating a list of secret keys and initialization vectors.
integer | $iterations | The number of internal iterations to perform. |
boolean|integer|null | $direction | Flag for encryption direction (encrypt => |
Key expansion service errors.
The list of keys and IVs.