erdtman / Cleartext-JOSE

Cleartext JOSE, Drafts specifying how to make cleartext versions of the JOSE specifications RFC7515 RFC7516 using ES6 canonicalization rather than base64url encoding of JSON data structures.
0 stars 2 forks source link

ECDSA Key/Hash algorithm sample error #59

Open cyberphone opened 6 years ago

cyberphone commented 6 years ago

It seems that I haven't read JWA down to the letter. If I understand things right ES256 is dedicated to to ECSDSA with P-256 and SHA256 making this example of ours incorrect: https://tools.ietf.org/id/draft-erdtman-jose-cleartext-jws-00.html#multipleglobalalg I have created an alternative test key called P-256-2 and associated sample to cope with that.

erdtman commented 6 years ago

That explains why I could not verify that example with my implementation. Could you create new Examples?

cyberphone commented 6 years ago

Sample: https://github.com/cyberphone/openkeystore/blob/jose-compatible/testdata/signatures-jose/p256%23es256%2Cp256-2%23es256%40mult-glob%2Balg-kid.json

Key: https://github.com/cyberphone/openkeystore/blob/jose-compatible/testdata/keys/p256-2privatekey.jwk