cleaned up composer

This commit is contained in:
2026-02-18 20:17:19 -06:00
parent 3c94239da7
commit 3e153679bd
5952 changed files with 271417 additions and 203117 deletions
@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
namespace Jose\Component\Signature\Algorithm;
use InvalidArgumentException;
use Jose\Component\Core\JWK;
use Override;
use function strlen;
final readonly class HS384 extends HMAC
{
#[Override]
public function name(): string
{
return 'HS384';
}
#[Override]
protected function getHashAlgorithm(): string
{
return 'sha384';
}
#[Override]
protected function getKey(JWK $key): string
{
$k = parent::getKey($key);
if (strlen($k) < 48) {
throw new InvalidArgumentException('Invalid key length.');
}
return $k;
}
}