deno/ext/node/polyfills/internal_binding/crypto.ts
Divy Srivastava 342ea09135
fix(ext/node): stub getFipsCrypto to false (#29485)
This makes Deno act as a non-FIPS compliant build of Node.js to node
modules.
2025-05-30 15:15:03 +09:00

15 lines
477 B
TypeScript

// Copyright 2018-2025 the Deno authors. MIT license.
// Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license.
export { timingSafeEqual } from "ext:deno_node/internal_binding/_timingSafeEqual.ts";
import { primordials } from "ext:core/mod.js";
const { Error } = primordials;
export function getFipsCrypto(): boolean {
return false;
}
export function setFipsCrypto(_fips: boolean) {
throw new Error("FIPS mode is not supported in Deno.");
}