diff --git a/ext/node/polyfills/internal_binding/crypto.ts b/ext/node/polyfills/internal_binding/crypto.ts index e3d03a4b1a..bd5c8c6b7f 100644 --- a/ext/node/polyfills/internal_binding/crypto.ts +++ b/ext/node/polyfills/internal_binding/crypto.ts @@ -1,14 +1,15 @@ // Copyright 2018-2025 the Deno authors. MIT license. // Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license. -import { notImplemented } from "ext:deno_node/_utils.ts"; - export { timingSafeEqual } from "ext:deno_node/internal_binding/_timingSafeEqual.ts"; +import { primordials } from "ext:core/mod.js"; + +const { Error } = primordials; export function getFipsCrypto(): boolean { - notImplemented("crypto.getFipsCrypto"); + return false; } export function setFipsCrypto(_fips: boolean) { - notImplemented("crypto.setFipsCrypto"); + throw new Error("FIPS mode is not supported in Deno."); }