LibWeb: Correctly set the usage on the private key for ML-KEM

This is one lines gives us almost 1000 WPTs :)
This commit is contained in:
Tete17
2025-12-30 22:51:56 +01:00
committed by Shannon Booth
parent 5b215c01f8
commit 4e41cfb6c4
Notes: github-actions[bot] 2026-01-06 00:08:24 +00:00
2 changed files with 471 additions and 471 deletions

View File

@@ -9054,7 +9054,7 @@ WebIDL::ExceptionOr<Variant<GC::Ref<CryptoKey>, GC::Ref<CryptoKeyPair>>> MLKEM::
// 15. Set the [[usages]] internal slot of privateKey to be the usage intersection of usages and [ "decapsulateKey",
// "decapsulateBits" ].
private_key->set_usages(usage_intersection(usages, { { Bindings::KeyUsage::Encapsulatekey, Bindings::KeyUsage::Encapsulatebits } }));
private_key->set_usages(usage_intersection(usages, { { Bindings::KeyUsage::Decapsulatekey, Bindings::KeyUsage::Decapsulatebits } }));
// 16. Let result be a new CryptoKeyPair dictionary.
// 17. Set the publicKey attribute of result to be publicKey.