@@ -15,27 +15,27 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | class A128GCMKWAlgorithm extends AESGCMKWAlgorithm |
| 17 | 17 | { |
| 18 | - /** |
|
| 19 | - * {@inheritdoc} |
|
| 20 | - */ |
|
| 21 | - public function algorithmParamValue(): string |
|
| 22 | - { |
|
| 23 | - return JWA::ALGO_A128GCMKW; |
|
| 24 | - } |
|
| 18 | + /** |
|
| 19 | + * {@inheritdoc} |
|
| 20 | + */ |
|
| 21 | + public function algorithmParamValue(): string |
|
| 22 | + { |
|
| 23 | + return JWA::ALGO_A128GCMKW; |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * {@inheritdoc} |
|
| 28 | - */ |
|
| 29 | - protected function _getGCMCipher(): Cipher |
|
| 30 | - { |
|
| 31 | - return new AES128Cipher(); |
|
| 32 | - } |
|
| 26 | + /** |
|
| 27 | + * {@inheritdoc} |
|
| 28 | + */ |
|
| 29 | + protected function _getGCMCipher(): Cipher |
|
| 30 | + { |
|
| 31 | + return new AES128Cipher(); |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | - /** |
|
| 35 | - * {@inheritdoc} |
|
| 36 | - */ |
|
| 37 | - protected function _keySize(): int |
|
| 38 | - { |
|
| 39 | - return 16; |
|
| 40 | - } |
|
| 34 | + /** |
|
| 35 | + * {@inheritdoc} |
|
| 36 | + */ |
|
| 37 | + protected function _keySize(): int |
|
| 38 | + { |
|
| 39 | + return 16; |
|
| 40 | + } |
|
| 41 | 41 | } |
@@ -15,27 +15,27 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | class A256GCMKWAlgorithm extends AESGCMKWAlgorithm |
| 17 | 17 | { |
| 18 | - /** |
|
| 19 | - * {@inheritdoc} |
|
| 20 | - */ |
|
| 21 | - public function algorithmParamValue(): string |
|
| 22 | - { |
|
| 23 | - return JWA::ALGO_A256GCMKW; |
|
| 24 | - } |
|
| 18 | + /** |
|
| 19 | + * {@inheritdoc} |
|
| 20 | + */ |
|
| 21 | + public function algorithmParamValue(): string |
|
| 22 | + { |
|
| 23 | + return JWA::ALGO_A256GCMKW; |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * {@inheritdoc} |
|
| 28 | - */ |
|
| 29 | - protected function _getGCMCipher(): Cipher |
|
| 30 | - { |
|
| 31 | - return new AES256Cipher(); |
|
| 32 | - } |
|
| 26 | + /** |
|
| 27 | + * {@inheritdoc} |
|
| 28 | + */ |
|
| 29 | + protected function _getGCMCipher(): Cipher |
|
| 30 | + { |
|
| 31 | + return new AES256Cipher(); |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | - /** |
|
| 35 | - * {@inheritdoc} |
|
| 36 | - */ |
|
| 37 | - protected function _keySize(): int |
|
| 38 | - { |
|
| 39 | - return 32; |
|
| 40 | - } |
|
| 34 | + /** |
|
| 35 | + * {@inheritdoc} |
|
| 36 | + */ |
|
| 37 | + protected function _keySize(): int |
|
| 38 | + { |
|
| 39 | + return 32; |
|
| 40 | + } |
|
| 41 | 41 | } |
@@ -12,21 +12,21 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | interface CompressionAlgorithm extends CompressionAlgorithmParameterValue, HeaderParameters |
| 14 | 14 | { |
| 15 | - /** |
|
| 16 | - * Compress data. |
|
| 17 | - * |
|
| 18 | - * @param string $data Uncompressed data |
|
| 19 | - * |
|
| 20 | - * @return string Compressed data |
|
| 21 | - */ |
|
| 22 | - public function compress(string $data): string; |
|
| 15 | + /** |
|
| 16 | + * Compress data. |
|
| 17 | + * |
|
| 18 | + * @param string $data Uncompressed data |
|
| 19 | + * |
|
| 20 | + * @return string Compressed data |
|
| 21 | + */ |
|
| 22 | + public function compress(string $data): string; |
|
| 23 | 23 | |
| 24 | - /** |
|
| 25 | - * Decompress data. |
|
| 26 | - * |
|
| 27 | - * @param string $data Compressed data |
|
| 28 | - * |
|
| 29 | - * @return string Uncompressed data |
|
| 30 | - */ |
|
| 31 | - public function decompress(string $data): string; |
|
| 24 | + /** |
|
| 25 | + * Decompress data. |
|
| 26 | + * |
|
| 27 | + * @param string $data Compressed data |
|
| 28 | + * |
|
| 29 | + * @return string Uncompressed data |
|
| 30 | + */ |
|
| 31 | + public function decompress(string $data): string; |
|
| 32 | 32 | } |