cryptal
latest
Cryptography Abstraction Layer
|
Public Member Functions | |
__construct (CryptoInterface $cipher, $iv, $tagLength) | |
decrypt ($data, $context) | |
encrypt ($data, $context) | |
Protected Attributes | |
$cipher | |
Implementation. | |
fpoirotte\Cryptal\Modes\ECB::__construct | ( | CryptoInterface | $impl, |
$iv, | |||
$tagLength | |||
) |
Construct an encryption/decryption mode of operations.
CryptoInterface | $impl | Cryptographic implementation. |
string | $iv | Initialization Vector for the cipher. |
int | $tagLength | Length (in bytes) of the tags to generate (AEAD only). |
Implements fpoirotte\Cryptal\SymmetricModeInterface.
Definition at line 16 of file ECB.php.
References fpoirotte\Cryptal\Modes\ECB\$cipher.
fpoirotte\Cryptal\Modes\ECB::decrypt | ( | $data, | |
$context | |||
) |
Decrypt some data.
string | $data | Data to decrypt. |
resource | $context | Stream context for the operation. |
Implements fpoirotte\Cryptal\AsymmetricModeInterface.
fpoirotte\Cryptal\Modes\ECB::encrypt | ( | $data, | |
$context | |||
) |
Encrypt some data.
string | $data | Data to encrypt. |
resource | $context | Stream context for the operation. |
Implements fpoirotte\Cryptal\SymmetricModeInterface.