Files
servo/components/script/dom/subtlecrypto
Kingsley Yung ab6a42c8cd script: ML-KEM/ML-DSA PKCS8 keys in non-seed-only formats (#43315)
The specification of Modern Algorithms in WebCrypto API has updated to
specify how to handle ML-KEM/DSA PKCS8 keys in non-seed-only formats.

In the updated specification:

- When importing a key in the `expandedKey` format, throw a
`NotSupportedError`.
- When importing a key in the `both` format, *optionally* throw a
`NotSupportedError`.
- Alternatively, when importing a key in the `both` format, require
checking that the seed and expanded key match.

Our implementation matches the updated specification, with support of
the `both` format. Therefore, this patch only updates the specification
text, without changing the code.

Related commit in specification repository:
6543db893e

Testing: Only changes in spec text. No code change.

Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
2026-03-16 14:02:33 +00:00
..