mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
LibWeb: Make SubtleCrypto use the correct algorithm name for SHA-1
The spec defines "SHA-1" as a recognized algorithm name, not "SHA1". This makes SHA-1 hash values show up on string.248.no.
This commit is contained in:
parent
d5e74b1bdc
commit
d89e617a42
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ SubtleCrypto::SupportedAlgorithmsMap SubtleCrypto::supported_algorithms()
|
|||
|
||||
// https://w3c.github.io/webcrypto/#algorithm-conventions
|
||||
// https://w3c.github.io/webcrypto/#sha
|
||||
define_an_algorithm("digest"_string, "SHA1"_string, ""_string);
|
||||
define_an_algorithm("digest"_string, "SHA-1"_string, ""_string);
|
||||
define_an_algorithm("digest"_string, "SHA-256"_string, ""_string);
|
||||
define_an_algorithm("digest"_string, "SHA-384"_string, ""_string);
|
||||
define_an_algorithm("digest"_string, "SHA-512"_string, ""_string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue