From 4358ab2d848cc6ba363f42e5f5b5b898b656db05 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Tue, 28 Mar 2023 21:46:48 +0900 Subject: fix(ext/node): implement crypto.Sign (RSA/PEM/SHA{224,256,384,512}) (#18471) --- ext/node/polyfills/internal/crypto/hash.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/node/polyfills/internal/crypto/hash.ts') 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}`); -- cgit v1.2.3