Scope
Port Bun corpus position 4028, js/third_party/jsonwebtoken/rsa-public-key.test.js.
Acceptance criteria
- PKCS#1
BEGIN RSA PUBLIC KEYBuffers verify tokens signed by the matching private PEM for RS256 and PS256. - Existing SPKI/certificate public-key variants remain supported.
- 1024-bit RSA private KeyObjects remain rejected by default and accepted only with
allowInsecureKeySizes. - Mismatched public keys still fail with structured signature diagnostics.
- Focused, issue-70, async RSA-policy, asymmetric, and permanent diagnostics pass.