LibWeb: Implement generateKey for ECDSA

This commit is contained in:
stelar7 2024-03-27 01:27:42 +01:00 committed by Andrew Kaster
commit 41449814db
Notes: sideshowbarker 2024-07-17 07:06:47 +09:00
5 changed files with 201 additions and 0 deletions

View file

@ -575,6 +575,9 @@ SupportedAlgorithmsMap supported_algorithms()
define_an_algorithm<RSAOAEP, RsaOaepParams>("encrypt"_string, "RSA-OAEP"_string);
define_an_algorithm<RSAOAEP, RsaOaepParams>("decrypt"_string, "RSA-OAEP"_string);
// https://w3c.github.io/webcrypto/#ecdsa
define_an_algorithm<ECDSA, EcKeyGenParams>("generateKey"_string, "ECDSA"_string);
return internal_object;
}