Skip to content

Commit 3fc107e

Browse files
authored
Data collector messages (#152)
* New colors + new template organization * DataCollector updated * JWE/JWS event collections * Header/Claim check events
1 parent 3a1c027 commit 3fc107e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

PBES2AESKW.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,8 @@
1818

1919
abstract class PBES2AESKW implements KeyWrapping
2020
{
21-
/**
22-
* @var int
23-
*/
2421
private $salt_size;
2522

26-
/**
27-
* @var int
28-
*/
2923
private $nb_count;
3024

3125
public function __construct(int $salt_size = 64, int $nb_count = 4096)
@@ -80,7 +74,7 @@ public function getKeyManagementMode(): string
8074
return self::MODE_WRAP;
8175
}
8276

83-
protected function checkKey(JWK $key)
77+
protected function checkKey(JWK $key): void
8478
{
8579
if (!\in_array($key->get('kty'), $this->allowedKeyTypes(), true)) {
8680
throw new \InvalidArgumentException('Wrong key type.');
@@ -90,7 +84,7 @@ protected function checkKey(JWK $key)
9084
}
9185
}
9286

93-
protected function checkHeaderAlgorithm(array $header)
87+
protected function checkHeaderAlgorithm(array $header): void
9488
{
9589
if (!\array_key_exists('alg', $header)) {
9690
throw new \InvalidArgumentException('The header parameter "alg" is missing.');
@@ -100,7 +94,7 @@ protected function checkHeaderAlgorithm(array $header)
10094
}
10195
}
10296

103-
protected function checkHeaderAdditionalParameters(array $header)
97+
protected function checkHeaderAdditionalParameters(array $header): void
10498
{
10599
foreach (['p2s', 'p2c'] as $k) {
106100
if (!\array_key_exists($k, $header)) {

0 commit comments

Comments
 (0)