mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -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";
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue