Skip to content

Commit 512a907

Browse files
authored
test(signature): guard unsupported EC curve widths
Assisted-by: GitHub Copilot Coding Agent:gpt-5.6-terra
1 parent 3e555ff commit 512a907

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/lib/Security/Signature/Rfc9421/AlgorithmTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ private static function coordinateSizeForCurve(string $curve): int {
198198
return match ($curve) {
199199
'P-256' => 32,
200200
'P-384' => 48,
201+
default => throw new \InvalidArgumentException('unsupported EC curve: ' . $curve),
201202
};
202203
}
203204

0 commit comments

Comments
 (0)