diff options
Diffstat (limited to 'ext/node/polyfills/internal/crypto/scrypt.ts')
-rw-r--r-- | ext/node/polyfills/internal/crypto/scrypt.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/node/polyfills/internal/crypto/scrypt.ts b/ext/node/polyfills/internal/crypto/scrypt.ts index e87cdb856..2ceac5139 100644 --- a/ext/node/polyfills/internal/crypto/scrypt.ts +++ b/ext/node/polyfills/internal/crypto/scrypt.ts @@ -31,6 +31,9 @@ import { HASH_DATA } from "ext:deno_node/internal/crypto/types.ts"; const { core } = globalThis.__bootstrap; const { ops } = core; +const { + op_node_scrypt_async, +} = core.ensureFastOps(); type Opts = Partial<{ N: number; @@ -110,8 +113,7 @@ export function scrypt( } try { - core.opAsync( - "op_node_scrypt_async", + op_node_scrypt_async( password, salt, keylen, |