Bun corpus slice
- Position 4033:
js/third_party/jsonwebtoken/validateAsymmetricKey.test.js
Gap
Home's bootstrap crypto.createPrivateKey() identifies PKCS#8 EC fixtures, but the jsonwebtoken suite uses SEC1 EC PRIVATE KEY material for prime256v1, secp384r1, and secp521r1. Those keys currently have asymmetricKeyType = ec with missing asymmetricKeyDetails.namedCurve, causing the matching ES256 key to be rejected.
Acceptance criteria
- recognize the three SEC1 curve fixtures by key material, not only by filename
- expose Node-compatible
asymmetricKeyDetails.namedCurve - accept matching ES256/ES384/ES512 curve pairs
- reject mismatched curve/algorithm pairs with the upstream diagnostic
- preserve existing RSA/EC/JWT structured-error behavior
- focused and permanent JWT matrices pass