cryptal  latest
Cryptography Abstraction Layer
fpoirotte\Cryptal\Modes\CFB Class Reference
+ Inheritance diagram for fpoirotte\Cryptal\Modes\CFB:

Public Member Functions

 __construct (CryptoInterface $cipher, $iv, $tagLength)
 
 decrypt ($data, $context)
 
 encrypt ($data, $context)
 

Protected Attributes

 $cipher
 Cipher.
 
 $iv
 Initialization Vector.
 

Detailed Description

Cipher Feedback mode

Definition at line 11 of file CFB.php.

Constructor & Destructor Documentation

fpoirotte\Cryptal\Modes\CFB::__construct ( CryptoInterface  $impl,
  $iv,
  $tagLength 
)

Construct an encryption/decryption mode of operations.

Parameters
CryptoInterface$implCryptographic implementation.
string$ivInitialization Vector for the cipher.
int$tagLengthLength (in bytes) of the tags to generate (AEAD only).

Implements fpoirotte\Cryptal\SymmetricModeInterface.

Definition at line 19 of file CFB.php.

References fpoirotte\Cryptal\Modes\CFB\$cipher, fpoirotte\Cryptal\Modes\CFB\$iv, and fpoirotte\Cryptal\Implementers\CryptoInterface\getBlockSize().

Member Function Documentation

fpoirotte\Cryptal\Modes\CFB::decrypt (   $data,
  $context 
)

Decrypt some data.

Parameters
string$dataData to decrypt.
resource$contextStream context for the operation.

Implements fpoirotte\Cryptal\AsymmetricModeInterface.

Definition at line 38 of file CFB.php.

fpoirotte\Cryptal\Modes\CFB::encrypt (   $data,
  $context 
)

Encrypt some data.

Parameters
string$dataData to encrypt.
resource$contextStream context for the operation.

Implements fpoirotte\Cryptal\SymmetricModeInterface.

Definition at line 31 of file CFB.php.


The documentation for this class was generated from the following file: