-7 (ES256), where kty is 2 (with uncompressed points) and crv is 1 (P-256).
-257 (RS256).
-8 (EdDSA), where crv is 6 (Ed25519).
This PR adds der_spki() methods for RS256 and Ed25519 and improves the serialization tests for all key types.
It turns out that #292 did not resolve all of the issues with the CBOR encoding of OKP keys (see also: Firefox Bug 1852812 and references therein), so I've included a patch for that as well.
The
getPublicKey()
method in WebAuthn Level 3 outputs a DER encoded SubjectPublicKeyInfo, and it has the following requirement:This PR adds der_spki() methods for RS256 and Ed25519 and improves the serialization tests for all key types.
It turns out that #292 did not resolve all of the issues with the CBOR encoding of OKP keys (see also: Firefox Bug 1852812 and references therein), so I've included a patch for that as well.