On 2020-09-20 09:07, Jim Schaad wrote: <snip>
FWIW, here is how the quirk manifests itself in my JOSE library: JSONObjectWriter setSignatureAlgorithm(JSONObjectWriter joseObject, SignatureAlgorithms signatureAlgorithm) { return joseObject.setString("alg", signatureAlgorithm.isOkp() ? "EdDSA" : signatureAlgorithm.getAlgorithmId()); } [JLS] This draft will soon render this code incorrect. https://datatracker.ietf.org/doc/draft-ietf-lwig-curve-representations/
Sure, note though that the draft (in contrast to RFC 8037), defines key-specific "alg" parameters. Anders _______________________________________________ jose mailing list jose@ietf.org https://www.ietf.org/mailman/listinfo/jose