mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 00:49:46 +00:00
LibWeb: Implement and test SubtleCrypto interface for HKDF operations
This fixes several hundred if not thousands of WPT tests: https://wpt.live/WebCryptoAPI/derive_bits_keys/hkdf.https.any.html?1-1000
This commit is contained in:
parent
6072ae5bae
commit
f670c68ded
Notes:
github-actions[bot]
2024-10-23 18:21:54 +00:00
Author: https://github.com/BenWiederhake
Commit: f670c68ded
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1877
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/alimpfard ✅
Reviewed-by: https://github.com/stelar7
3 changed files with 167 additions and 0 deletions
|
|
@ -768,6 +768,11 @@ SupportedAlgorithmsMap supported_algorithms()
|
|||
define_an_algorithm<SHA>("digest"_string, "SHA-384"_string);
|
||||
define_an_algorithm<SHA>("digest"_string, "SHA-512"_string);
|
||||
|
||||
// https://w3c.github.io/webcrypto/#hkdf
|
||||
define_an_algorithm<HKDF>("importKey"_string, "HKDF"_string);
|
||||
define_an_algorithm<HKDF, HKDFParams>("deriveBits"_string, "HKDF"_string);
|
||||
define_an_algorithm<HKDF>("get key length"_string, "HKDF"_string);
|
||||
|
||||
// https://w3c.github.io/webcrypto/#pbkdf2
|
||||
define_an_algorithm<PBKDF2>("importKey"_string, "PBKDF2"_string);
|
||||
define_an_algorithm<PBKDF2, PBKDF2Params>("deriveBits"_string, "PBKDF2"_string);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue