v0.5.13
The purpose of this release is to correctly pad EC JWK parameters with leading zeros where required by RFC 7518.
For "x"
and "y"
:
The length of this octet string MUST be the full size of a coordinate for the curve specified in the "crv" parameter. For example, if the value of "crv" is "P-521", the octet string must be 66 octets long.
For "d"
:
The length of this octet string MUST be ceiling(log-base-2(n)/8) octets (where n is the order of the curve).
This is to bring the project into RFC compliance with RFC 7518 Section 6.2.1.2, 6.2.1.3, and 6.2.2.1.
Relevant issues:
What's Changed
- Required leading zeros in ECDSA keys by @MicahParks in #19
Full Changelog: v0.5.12...v0.5.13