script: Implement sign and verify operations of ML-DSA (#41676)

Finish adding ML-DSA support to WebCrypto API.

This patch implements the sign and verify operations of ML-DSA, with
`ml-dsa` crate.

Specification:
https://wicg.github.io/webcrypto-modern-algos/#ml-dsa-operations-sign
https://wicg.github.io/webcrypto-modern-algos/#ml-dsa-operations-verify

Testing: Pass some WPT tests that were expected to fail.
Fixes: Part of #41626

Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
This commit is contained in:
Kingsley Yung
2026-01-05 14:12:58 +08:00
committed by GitHub
parent 8bf0629320
commit 259b3985ee
4 changed files with 216 additions and 477 deletions

View File

@@ -315,6 +315,12 @@ partial interface SubtleCrypto {
enum KeyFormat { "raw-public", "raw-private", "raw-seed", "raw-secret", "raw", "spki", "pkcs8", "jwk" };
// https://wicg.github.io/webcrypto-modern-algos/#context-params
dictionary ContextParams : Algorithm {
BufferSource context;
};
// https://wicg.github.io/webcrypto-modern-algos/#aead-params
dictionary AeadParams : Algorithm {