mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
fix(ext/node): add crypto.getRandomValues (#23028)
Alias for `crypto.webcrypto.getRandomValues`
This commit is contained in:
parent
f96f167dc8
commit
eb9d473974
1 changed files with 6 additions and 0 deletions
|
@ -164,6 +164,10 @@ import { crypto as webcrypto } from "ext:deno_crypto/00_crypto.js";
|
|||
|
||||
const fipsForced = getOptionValue("--force-fips");
|
||||
|
||||
function getRandomValues(typedArray) {
|
||||
return webcrypto.getRandomValues(typedArray);
|
||||
}
|
||||
|
||||
function createCipheriv(
|
||||
algorithm: CipherCCMTypes,
|
||||
key: CipherKey,
|
||||
|
@ -332,6 +336,7 @@ export default {
|
|||
diffieHellman,
|
||||
DiffieHellmanGroup,
|
||||
ECDH,
|
||||
getRandomValues,
|
||||
generateKey,
|
||||
generateKeyPair,
|
||||
generateKeyPairSync,
|
||||
|
@ -480,6 +485,7 @@ export {
|
|||
getDiffieHellman,
|
||||
getFips,
|
||||
getHashes,
|
||||
getRandomValues,
|
||||
Hash,
|
||||
hkdf,
|
||||
hkdfSync,
|
||||
|
|
Loading…
Reference in a new issue