1 | <?php |
||
17 | abstract class AESGCM implements ContentEncryptionAlgorithmInterface |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | public function encryptContent($data, $cek, $iv, $aad, $encoded_protected_header, &$tag) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function decryptContent($data, $cek, $iv, $aad, $encoded_protected_header, $tag) |
||
46 | |||
47 | /** |
||
48 | * @return int |
||
49 | */ |
||
50 | public function getIVSize() |
||
54 | |||
55 | /** |
||
56 | * @return int |
||
57 | */ |
||
58 | public function getCEKSize() |
||
62 | |||
63 | /** |
||
64 | * @return int |
||
65 | */ |
||
66 | abstract protected function getKeySize(); |
||
67 | } |
||
68 |