mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
LibWeb: Implement SubtleCrypto.digest()
This is a simple implementation of SubtleCrypto.digest() using LibCrypto under the hood, so it supports all the required hash functions: SHA-1, SHA-256, SHA-384, SHA-512. Two FIXMEs remain: doing the hashing "in parallel", and supporting an object argument instead of a plain string.
This commit is contained in:
parent
5e06d5e9e5
commit
4daf07e69f
4 changed files with 90 additions and 0 deletions
|
@ -15,6 +15,7 @@ set(SOURCES
|
|||
Bindings/WindowObject.cpp
|
||||
Bindings/Wrappable.cpp
|
||||
Crypto/Crypto.cpp
|
||||
Crypto/SubtleCrypto.cpp
|
||||
CSS/Serialize.cpp
|
||||
CSS/CSSConditionRule.cpp
|
||||
CSS/CSSGroupingRule.cpp
|
||||
|
@ -364,6 +365,7 @@ function(libweb_js_wrapper class)
|
|||
endfunction()
|
||||
|
||||
libweb_js_wrapper(Crypto/Crypto)
|
||||
libweb_js_wrapper(Crypto/SubtleCrypto)
|
||||
libweb_js_wrapper(CSS/CSSRule)
|
||||
libweb_js_wrapper(CSS/CSSRuleList)
|
||||
libweb_js_wrapper(CSS/CSSStyleDeclaration)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue