diff options
Diffstat (limited to 'ext/node/polyfills/internal/crypto/pbkdf2.ts')
-rw-r--r-- | ext/node/polyfills/internal/crypto/pbkdf2.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/polyfills/internal/crypto/pbkdf2.ts b/ext/node/polyfills/internal/crypto/pbkdf2.ts index f177d153a..50cc3a83e 100644 --- a/ext/node/polyfills/internal/crypto/pbkdf2.ts +++ b/ext/node/polyfills/internal/crypto/pbkdf2.ts @@ -8,6 +8,7 @@ import { HASH_DATA } from "ext:deno_node/internal/crypto/types.ts"; const { core } = globalThis.__bootstrap; const { ops } = core; +const { op_node_pbkdf2_async } = core.ensureFastOps(); export const MAX_ALLOC = Math.pow(2, 30) - 1; @@ -77,8 +78,7 @@ export function pbkdf2( throw new TypeError("Bad key length"); } - core.opAsync( - "op_node_pbkdf2_async", + op_node_pbkdf2_async( password, salt, iterations, |