LibWeb: Implement AES-GCM.exportKey

This commit is contained in:
stelar7
2024-10-31 16:02:24 +01:00
committed by Andreas Kling
parent e53b3f5fb1
commit 3dd80d2a6e
Notes: github-actions[bot] 2024-10-31 22:35:08 +00:00
3 changed files with 70 additions and 0 deletions

View File

@@ -787,6 +787,7 @@ SupportedAlgorithmsMap supported_algorithms()
// https://w3c.github.io/webcrypto/#aes-gcm-registration
define_an_algorithm<AesGcm, AesDerivedKeyParams>("get key length"_string, "AES-GCM"_string);
define_an_algorithm<AesGcm>("importKey"_string, "AES-GCM"_string);
define_an_algorithm<AesGcm>("exportKey"_string, "AES-GCM"_string);
// https://w3c.github.io/webcrypto/#hkdf
define_an_algorithm<HKDF>("importKey"_string, "HKDF"_string);