cryptal  latest
Cryptography Abstraction Layer
CryptoInterface.php
1 <?php
2 
4 
9 
14 {
15  const DEFAULT_TAG_LENGTH = 16;
16 
40  public function __construct(
41  CipherEnum $cipher,
42  ModeEnum $mode,
43  PaddingInterface $padding,
44  $key,
45  $tagLength = self::DEFAULT_TAG_LENGTH
46  );
47 
81  public function encrypt($iv, $data, &$tag = null, $aad = '');
82 
117  public function decrypt($iv, $data, $tag = null, $aad = '');
118 
127  public function getIVSize();
128 
137  public function getBlockSize();
138 
145  public function getCipher();
146 
153  public function getKey();
154 }
decrypt($iv, $data, $tag=null, $aad= '')
__construct(CipherEnum $cipher, ModeEnum $mode, PaddingInterface $padding, $key, $tagLength=self::DEFAULT_TAG_LENGTH)
encrypt($iv, $data, &$tag=null, $aad= '')