$randomnessSource
$randomnessSource : \CryptoManana\Core\Abstractions\Randomness\AbstractRandomness|\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null
The pseudo-random generator service property storage.
Class DigitalEnvelope - The digital envelope cryptographic protocol object.
$randomnessSource : \CryptoManana\Core\Abstractions\Randomness\AbstractRandomness|\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null
The pseudo-random generator service property storage.
$keyedDigestionSource : \CryptoManana\Core\Abstractions\MessageDigestion\AbstractKeyedHashFunction|null
The message keyed digestion service property storage.
$symmetricCipherSource : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null
The message encryption symmetric algorithm service property storage.
$asymmetricCipherSource : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null
The message asymmetric encryption algorithm service property storage.
setRandomGenerator(\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator $generator) : $this
Setter for the pseudo-random generator service.
\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator | $generator | The pseudo-random generator service. |
The container object.
getRandomGenerator() : \CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null
Getter for the pseudo-random generator service.
The currently injected pseudo-random generator service.
setKeyedDigestionFunction(\CryptoManana\Core\Abstractions\MessageDigestion\AbstractKeyedHashFunction $hasher) : $this
Setter for the keyed message digestion service.
\CryptoManana\Core\Abstractions\MessageDigestion\AbstractKeyedHashFunction | $hasher | The keyed message digestion service or null. |
The container object.
getKeyedDigestionFunction() : \CryptoManana\Core\Abstractions\MessageDigestion\AbstractKeyedHashFunction|null
Getter for the keyed message digestion service.
The currently injected message digestion 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.
setAsymmetricCipher(\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface $cipher) : $this
Setter for the message asymmetric encryption service.
\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface | $cipher | The message asymmetric encryption service. |
The container object.
getAsymmetricCipher() : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null
Getter for the message asymmetric encryption service.
The currently injected message encryption service or null.
__construct(\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null $asymmetric = null, \CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|null $symmetric = null)
Container constructor.
\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null | $asymmetric | The asymmetric message encryption service. |
\CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|null | $symmetric | the message encryption service. |
Initialization validation.
sealEnvelope(string $plainData) : \CryptoManana\DataStructures\EnvelopeData
Seals the envelope with the secured information inside.
string | $plainData | The plain message information. |
Validation errors.
The sealed envelope object.
openEnvelope(\CryptoManana\DataStructures\EnvelopeData $envelopeData) : string
Opens the envelope and extracts secured information from it.
\CryptoManana\DataStructures\EnvelopeData | $envelopeData | The sealed envelope object. |
Validation errors.
The plain message information.