mirror of
https://github.com/servo/servo
synced 2026-05-10 17:12:23 +02:00
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>