diff options
Diffstat (limited to 'ext/node/polyfills/internal/crypto/hkdf.ts')
-rw-r--r-- | ext/node/polyfills/internal/crypto/hkdf.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/node/polyfills/internal/crypto/hkdf.ts b/ext/node/polyfills/internal/crypto/hkdf.ts index 4454b0488..8f3e8c7a9 100644 --- a/ext/node/polyfills/internal/crypto/hkdf.ts +++ b/ext/node/polyfills/internal/crypto/hkdf.ts @@ -33,6 +33,9 @@ import { const { core } = globalThis.__bootstrap; const { ops } = core; +const { + op_node_hkdf_async, +} = core.ensureFastOps(); const validateParameters = hideStackFrames((hash, key, salt, info, length) => { validateString(hash, "digest"); @@ -109,7 +112,7 @@ export function hkdf( validateFunction(callback, "callback"); - core.opAsync("op_node_hkdf_async", hash, key, salt, info, length) + op_node_hkdf_async(hash, key, salt, info, length) .then((okm) => callback(null, okm.buffer)) .catch((err) => callback(new ERR_CRYPTO_INVALID_DIGEST(err), undefined)); } |