Open Bug 1096777 Opened 11 years ago Updated 11 months ago

Properly handle JWK keys that have "oth" populated

Categories

(Core :: DOM: Web Crypto, defect, P5)

defect

Tracking

()

People

(Reporter: rbarnes, Assigned: anna.weine)

References

(Blocks 1 open bug)

Details

If a JWK includes an "oth" field, then its modulus has more than 2 prime factors. In this case, using the "p", "q", "dp", "dq", etc. elements -- anything besides "n", "e", and "d" -- results in incorrect operation. Unfortunately, the current WebCrypto implementation does exactly this. NSS doesn't support multi-prime, and doesn't accept private keys that have only "n", "e", and "d", so we need to update CryptoKey::PrivateKeyFromJwk to reject keys that include "oth".
Blocks: web-crypto
Component: DOM: Security → Security
Severity: normal → S3
Assignee: nobody → anna.weine
Component: Security → DOM: Web Crypto
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.