cryptal
latest
Cryptography Abstraction Layer
Main Page
Classes
Files
File List
CryptoInterface.php
1
<?php
2
3
namespace
fpoirotte\Cryptal\Implementers
;
4
5
use
fpoirotte\Cryptal\SubAlgorithmInterface
;
6
use
fpoirotte\Cryptal\PaddingInterface
;
7
use
fpoirotte\Cryptal\CipherEnum
;
8
use
fpoirotte\Cryptal\ModeEnum
;
9
13
interface
CryptoInterface
extends
SubAlgorithmInterface
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
}
fpoirotte\Cryptal\Implementers\CryptoInterface\decrypt
decrypt($iv, $data, $tag=null, $aad= '')
fpoirotte\Cryptal\PaddingInterface
Definition:
PaddingInterface.php:8
fpoirotte\Cryptal\Implementers
Definition:
AbstractHash.php:3
fpoirotte\Cryptal\Implementers\CryptoInterface\getBlockSize
getBlockSize()
fpoirotte\Cryptal\Implementers\CryptoInterface\getIVSize
getIVSize()
fpoirotte\Cryptal\Implementers\CryptoInterface
Definition:
CryptoInterface.php:13
fpoirotte\Cryptal\Implementers\CryptoInterface\__construct
__construct(CipherEnum $cipher, ModeEnum $mode, PaddingInterface $padding, $key, $tagLength=self::DEFAULT_TAG_LENGTH)
fpoirotte\Cryptal\Implementers\CryptoInterface\encrypt
encrypt($iv, $data, &$tag=null, $aad= '')
SubAlgorithmInterface
fpoirotte\Cryptal\Implementers\CryptoInterface\getCipher
getCipher()
fpoirotte\Cryptal\Implementers\CryptoInterface\getKey
getKey()
fpoirotte\Cryptal\SubAlgorithmInterface
Definition:
SubAlgorithmInterface.php:5
fpoirotte\Cryptal\ModeEnum
Definition:
ModeEnum.php:10
fpoirotte\Cryptal\CipherEnum
Definition:
CipherEnum.php:10
ModeEnum
PaddingInterface
CipherEnum
src
Cryptal
Implementers
CryptoInterface.php
Generated on Sat Sep 29 2018 22:22:05 for cryptal by
1.8.11