diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-03-28 21:46:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 21:46:48 +0900 |
commit | 4358ab2d848cc6ba363f42e5f5b5b898b656db05 (patch) | |
tree | d4dc7dc75cbed3fdb794b508450cc6903d120c8f /ext/node/polyfills/internal/crypto/hash.ts | |
parent | e5b2815b3943cd39038bba00da462082c6988e6e (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.ts | 2 |
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}`); |