1 | <?php |
||
22 | abstract class AESGCMKW implements KeyWrappingInterface |
||
23 | { |
||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | public function wrapKey(JWKInterface $key, $cek, array $complete_headers, array &$additional_headers) |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function unwrapKey(JWKInterface $key, $encrypted_cek, array $header) |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function getKeyManagementMode() |
||
62 | |||
63 | /** |
||
64 | * @param JWKInterface $key |
||
65 | */ |
||
66 | protected function checkKey(JWKInterface $key) |
||
71 | |||
72 | /** |
||
73 | * @param array $header |
||
74 | */ |
||
75 | protected function checkAdditionalParameters(array $header) |
||
80 | |||
81 | /** |
||
82 | * @return int |
||
83 | */ |
||
84 | abstract protected function getKeySize(); |
||
85 | } |
||
86 |