test(jwt): cover InvalidSignatureScalar verification path
Add tests for the InvalidSignatureScalar error variant to ensure it's
properly mapped in both K256 and P256 signature verification paths.
- verify_compact_invalid_signature_scalar_k256: Tests that an all-zero
K256 signature is rejected with InvalidSignatureScalar.
- verify_compact_invalid_signature_scalar_p256: Tests that an all-zero
P256 signature is rejected with InvalidSignatureScalar.
Both tests hand-craft a compact JWT with valid structure but replace the
signature segment with base64url-encoded zeros, which causes both curves
to reject the signature during parsing (r and s are 0).
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
authored by