LibWeb: Support RSA-PSS in WebCryptoAPI

This commit is contained in:
devgianlu 2024-12-25 23:47:06 +01:00 committed by Jelle Raaijmakers
parent 3eeb35e787
commit e05ee9d297
Notes: github-actions[bot] 2025-01-17 11:44:17 +00:00
10 changed files with 1417 additions and 57 deletions

View file

@ -1079,11 +1079,11 @@ SupportedAlgorithmsMap const& supported_algorithms()
// FIXME: define_an_algorithm<RSAESPKCS1>("exportKey"_string, "RSASSA-PKCS1-v1_5"_string);
// https://w3c.github.io/webcrypto/#rsa-pss-registration
// FIXME: define_an_algorithm<RSAPSS>("sign"_string, "RSA-PSS"_string);
// FIXME: define_an_algorithm<RSAPSS>("verify"_string, "RSA-PSS"_string);
// FIXME: define_an_algorithm<RSAPSS, RsaHashedKeyGenParams>("generateKey"_string, "RSA-PSS"_string);
// FIXME: define_an_algorithm<RSAPSS, RsaHashedImportParams>("importKey"_string, "RSA-PSS"_string);
// FIXME: define_an_algorithm<RSAPSS>("exportKey"_string, "RSA-PSS"_string);
define_an_algorithm<RSAPSS, RsaPssParams>("sign"_string, "RSA-PSS"_string);
define_an_algorithm<RSAPSS, RsaPssParams>("verify"_string, "RSA-PSS"_string);
define_an_algorithm<RSAPSS, RsaHashedKeyGenParams>("generateKey"_string, "RSA-PSS"_string);
define_an_algorithm<RSAPSS, RsaHashedImportParams>("importKey"_string, "RSA-PSS"_string);
define_an_algorithm<RSAPSS>("exportKey"_string, "RSA-PSS"_string);
// https://w3c.github.io/webcrypto/#rsa-oaep-registration
define_an_algorithm<RSAOAEP, RsaOaepParams>("encrypt"_string, "RSA-OAEP"_string);