mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34: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:
parent
eb9d473974
commit
22eec2b3cf
1 changed files with 3 additions and 0 deletions
|
@ -162,6 +162,7 @@ import type {
|
||||||
} from "ext:deno_node/_stream.d.ts";
|
} from "ext:deno_node/_stream.d.ts";
|
||||||
import { crypto as webcrypto } from "ext:deno_crypto/00_crypto.js";
|
import { crypto as webcrypto } from "ext:deno_crypto/00_crypto.js";
|
||||||
|
|
||||||
|
const subtle = webcrypto.subtle;
|
||||||
const fipsForced = getOptionValue("--force-fips");
|
const fipsForced = getOptionValue("--force-fips");
|
||||||
|
|
||||||
function getRandomValues(typedArray) {
|
function getRandomValues(typedArray) {
|
||||||
|
@ -377,6 +378,7 @@ export default {
|
||||||
Verify,
|
Verify,
|
||||||
verify,
|
verify,
|
||||||
webcrypto,
|
webcrypto,
|
||||||
|
subtle,
|
||||||
X509Certificate,
|
X509Certificate,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -511,6 +513,7 @@ export {
|
||||||
setFips,
|
setFips,
|
||||||
Sign,
|
Sign,
|
||||||
sign,
|
sign,
|
||||||
|
subtle,
|
||||||
timingSafeEqual,
|
timingSafeEqual,
|
||||||
Verify,
|
Verify,
|
||||||
verify,
|
verify,
|
||||||
|
|
Loading…
Add table
Reference in a new issue