1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

fix(ext/node): add crypto.subtle (#23027)

Alias for `crypto.webcrypto.subtle`.
https://nodejs.org/api/crypto.html#cryptosubtle
This commit is contained in:
Divy Srivastava 2024-03-22 18:56:36 +05:30 committed by GitHub
parent eb9d473974
commit 22eec2b3cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,6 +162,7 @@ import type {
} from "ext:deno_node/_stream.d.ts";
import { crypto as webcrypto } from "ext:deno_crypto/00_crypto.js";
const subtle = webcrypto.subtle;
const fipsForced = getOptionValue("--force-fips");
function getRandomValues(typedArray) {
@ -377,6 +378,7 @@ export default {
Verify,
verify,
webcrypto,
subtle,
X509Certificate,
};
@ -511,6 +513,7 @@ export {
setFips,
Sign,
sign,
subtle,
timingSafeEqual,
Verify,
verify,