cryptal  latest
Cryptography Abstraction Layer
fpoirotte\Cryptal\SymmetricModeInterface Interface Reference
+ Inheritance diagram for fpoirotte\Cryptal\SymmetricModeInterface:

Public Member Functions

 __construct (CryptoInterface $impl, $iv, $tagLength)
 
 encrypt ($data, $context)
 

Detailed Description

Encryption/decryption mode where the same primitive is used for both encryption and decryption.

Definition at line 11 of file SymmetricModeInterface.php.

Constructor & Destructor Documentation

fpoirotte\Cryptal\SymmetricModeInterface::__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).

Implemented in fpoirotte\Cryptal\Modes\OCB, fpoirotte\Cryptal\Modes\GCM, fpoirotte\Cryptal\Modes\CCM, fpoirotte\Cryptal\Modes\EAX, fpoirotte\Cryptal\Modes\CTR, fpoirotte\Cryptal\Modes\CBC, fpoirotte\Cryptal\Modes\CFB, fpoirotte\Cryptal\Modes\OFB, and fpoirotte\Cryptal\Modes\ECB.

Member Function Documentation

fpoirotte\Cryptal\SymmetricModeInterface::encrypt (   $data,
  $context 
)

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