summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/crypto/hash.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2023-03-28 21:46:48 +0900
committerGitHub <noreply@github.com>2023-03-28 21:46:48 +0900
commit4358ab2d848cc6ba363f42e5f5b5b898b656db05 (patch)
treed4dc7dc75cbed3fdb794b508450cc6903d120c8f /ext/node/polyfills/internal/crypto/hash.ts
parente5b2815b3943cd39038bba00da462082c6988e6e (diff)
fix(ext/node): implement crypto.Sign (RSA/PEM/SHA{224,256,384,512}) (#18471)
Diffstat (limited to 'ext/node/polyfills/internal/crypto/hash.ts')
-rw-r--r--ext/node/polyfills/internal/crypto/hash.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/polyfills/internal/crypto/hash.ts b/ext/node/polyfills/internal/crypto/hash.ts
index 63c92190c..00dfa19af 100644
--- a/ext/node/polyfills/internal/crypto/hash.ts
+++ b/ext/node/polyfills/internal/crypto/hash.ts
@@ -73,7 +73,7 @@ export class Hash extends Transform {
if (typeof algorithm === "string") {
this.#context = ops.op_node_create_hash(
- algorithm,
+ algorithm.toLowerCase(),
);
if (this.#context === 0) {
throw new TypeError(`Unknown hash algorithm: ${algorithm}`);