Skip to content

Commit

Permalink
Support SHA512/256 hash
Browse files Browse the repository at this point in the history
  • Loading branch information
nhynes committed Jun 26, 2023
1 parent 2343ea2 commit dee9080
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/workerd/api/crypto-impl.c++
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ std::pair<kj::StringPtr, const EVP_MD*> lookupDigestAlgorithm(kj::StringPtr algo
{"SHA-256", EVP_sha256()},
{"SHA-384", EVP_sha384()},
{"SHA-512", EVP_sha512()},
{"SHA-512-256", EVP_sha512_256()},

// MD5 is not supported by WebCrypto, presumably because the designers didn't want to
// support broken crypto. However, the reality is that people still use MD5 for things, and if
Expand Down

0 comments on commit dee9080

Please sign in to comment.