1 | <?php |
||
18 | abstract class AESGCM implements ContentEncryptionAlgorithmInterface |
||
19 | { |
||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public function encryptContent($data, $cek, $iv, $aad, $encoded_protected_header, &$tag) |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function decryptContent($data, $cek, $iv, $aad, $encoded_protected_header, $tag) |
||
59 | |||
60 | /** |
||
61 | * @param string $k |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | private function getMode($k) |
||
69 | |||
70 | /** |
||
71 | * @return int |
||
72 | */ |
||
73 | public function getIVSize() |
||
77 | |||
78 | /** |
||
79 | * @return int |
||
80 | */ |
||
81 | public function getCEKSize() |
||
85 | |||
86 | /** |
||
87 | * @return int |
||
88 | */ |
||
89 | abstract protected function getKeySize(); |
||
90 | } |
||
91 |