cryptal
latest
Cryptography Abstraction Layer
|
Public Member Functions | |
__construct (CryptoInterface $cipher, $iv, $tagLength) | |
encrypt ($data, $context) | |
Protected Attributes | |
$cipher | |
Cipher. | |
$iv | |
Initialization Vector. | |
fpoirotte\Cryptal\Modes\OFB::__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 19 of file OFB.php.
References fpoirotte\Cryptal\Modes\OFB\$cipher, fpoirotte\Cryptal\Modes\OFB\$iv, and fpoirotte\Cryptal\Implementers\CryptoInterface\getBlockSize().
fpoirotte\Cryptal\Modes\OFB::encrypt | ( | $data, | |
$context | |||
) |
Encrypt some data.
string | $data | Data to encrypt. |
resource | $context | Stream context for the operation. |
Implements fpoirotte\Cryptal\SymmetricModeInterface.