LibWeb: Implement PBKDF2 getKeyLength for SubtleCrypto

This commit is contained in:
stelar7 2024-03-27 20:30:11 +01:00 committed by Andreas Kling
commit abf55fe33d
Notes: sideshowbarker 2024-07-17 20:33:50 +09:00
3 changed files with 13 additions and 1 deletions

View file

@ -677,7 +677,7 @@ SupportedAlgorithmsMap supported_algorithms()
// https://w3c.github.io/webcrypto/#pbkdf2
define_an_algorithm<PBKDF2>("importKey"_string, "PBKDF2"_string);
define_an_algorithm<PBKDF2, PBKDF2Params>("deriveBits"_string, "PBKDF2"_string);
// FIXME: define_an_algorithm("get key length"_string, "PBKDF2"_string, ""_string);
define_an_algorithm<PBKDF2>("get key length"_string, "PBKDF2"_string);
// https://w3c.github.io/webcrypto/#rsa-oaep
define_an_algorithm<RSAOAEP, RsaHashedKeyGenParams>("generateKey"_string, "RSA-OAEP"_string);