Description[webcrypto] JWK: Reject keys with non-minimal bigintegers.
RSA properties such as n, e, d, p, q, dp, dq, qi are big integers encoded as base64 url-safe, big-endian octet strings.
* Reject big integers that contain leading zeros, since by the JWA rules they must be minimal.
* Reject big integers that are the empty octet string (since 0 is the minimal representation of the big-endian number 0, not empty string).
This also changes the exception message and type when one of the optional parameters p, q, dp, dq, qi are missing. Before it would give an OperationError, because NSS was unable to infer the missing parameters. Now it gives a DataError explaining that the parameter is required.
BUG=374927, 383998
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285798
Patch Set 1 #Patch Set 2 : improve a test #
Total comments: 2
Patch Set 3 : address sleevi comment #
Messages
Total messages: 7 (0 generated)
|