Home
last modified time | relevance | path

Searched refs:getRandomValues (Results 1 – 25 of 27) sorted by relevance

12

/third_party/node/test/fixtures/wpt/WebCryptoAPI/
DgetRandomValues.any.js4 self.crypto.getRandomValues(new Float32Array(6))
7 self.crypto.getRandomValues(new Float64Array(6))
12 self.crypto.getRandomValues(new Float32Array(len));
16 self.crypto.getRandomValues(new Float64Array(len))
22 self.crypto.getRandomValues(new DataView(new ArrayBuffer(6)))
26 self.crypto.getRandomValues(new DataView(new ArrayBuffer(65536 + 1)))
46 assert_equals(self.crypto.getRandomValues(new ctor(8)).constructor,
53 self.crypto.getRandomValues(new ctor(maxlength + 1))
58 assert_true(self.crypto.getRandomValues(new ctor(0)).length == 0)
/third_party/node/test/parallel/
Dtest-webcrypto-encrypt-decrypt.js17 const buf = webcrypto.getRandomValues(new Uint8Array(50));
48 const buf = webcrypto.getRandomValues(new Uint8Array(50));
49 const counter = webcrypto.getRandomValues(new Uint8Array(16));
75 const buf = webcrypto.getRandomValues(new Uint8Array(50));
76 const iv = webcrypto.getRandomValues(new Uint8Array(16));
102 const buf = webcrypto.getRandomValues(new Uint8Array(50));
103 const iv = webcrypto.getRandomValues(new Uint8Array(12));
Dtest-webcrypto-random.js19 () => webcrypto.getRandomValues(i),
26 webcrypto.getRandomValues(buf);
44 webcrypto.getRandomValues(buf);
52 webcrypto.getRandomValues(buf);
67 () => webcrypto.getRandomValues(kData),
Dtest-webcrypto-getRandomValues.js9 const { getRandomValues } = require('crypto').webcrypto;
11 assert.throws(() => getRandomValues(new Uint8Array()), { code: 'ERR_INVALID_THIS' });
Dtest-webcrypto-constructors.js51 assert.throws(() => notCrypto.getRandomValues(new Uint8Array(12)), {
143 globalThis.crypto.getRandomValues(new Uint8Array(4)),
152 salt: globalThis.crypto.getRandomValues(new Uint8Array()),
Dtest-webcrypto-encrypt-decrypt-aes.js217 const iv = webcrypto.getRandomValues(new Uint8Array(12));
218 const aad = webcrypto.getRandomValues(new Uint8Array(32));
228 webcrypto.getRandomValues(new Uint8Array(32))
Dtest-webcrypto-export-import.js14 const keyData = webcrypto.getRandomValues(new Uint8Array(32));
77 const keyData = webcrypto.getRandomValues(new Uint8Array(32));
119 const keyData = webcrypto.getRandomValues(new Uint8Array(32));
Dtest-webcrypto-derivekey-cfrg.js171 const keyData = webcrypto.getRandomValues(new Uint8Array(32));
Dtest-webcrypto-derivekey-ecdh.js230 const keyData = webcrypto.getRandomValues(new Uint8Array(32));
Dtest-webcrypto-derivebits-cfrg.js199 const keyData = webcrypto.getRandomValues(new Uint8Array(32));
Dtest-webcrypto-derivebits-ecdh.js254 const keyData = webcrypto.getRandomValues(new Uint8Array(32));
Dtest-crypto-random.js110 cryptop.getRandomValues(buf);
/third_party/node/lib/
Dcrypto.js257 function getRandomValues(array) { function
258 return lazyWebCrypto().crypto.getRandomValues(array);
381 getRandomValues: { property
385 get: () => getRandomValues,
/third_party/node/benchmark/crypto/
Dwebcrypto-digest.js51 data = webcrypto.getRandomValues(Buffer.alloc(data));
/third_party/node/lib/internal/crypto/
Dwebcrypto.js58 getRandomValues: _getRandomValues,
988 function getRandomValues(array) { function
1008 getRandomValues: { property
1013 value: getRandomValues,
Drandom.js317 function getRandomValues(data) { function
612 getRandomValues, property
/third_party/node/test/fixtures/wpt/interfaces/
DWebCryptoAPI.idl13 ArrayBufferView getRandomValues(ArrayBufferView array);
/third_party/node/doc/api/
Dwebcrypto.md163 const iv = crypto.getRandomValues(new Uint8Array(16));
382 ### `crypto.getRandomValues(typedArray)`
Dcrypto.md4225 ### `crypto.getRandomValues(typedArray)`
4234 A convenient alias for [`crypto.webcrypto.getRandomValues()`][]. This
4236 web-compatible code use [`crypto.webcrypto.getRandomValues()`][] instead.
6154 [`crypto.webcrypto.getRandomValues()`]: webcrypto.md#cryptogetrandomvaluestypedarray
/third_party/node/doc/changelogs/
DCHANGELOG_V17.md307 …mmit/c9ea6a9261)] - **crypto**: validate `this` value for `webcrypto.getRandomValues` (Antoine du …
309 …js/node/commit/288f627c46)] - **crypto**: clarify `require("crypto").getRandomValues` is Node.js s…
562 …b.com/nodejs/node/commit/4a4c907604)] - **crypto**: adjust types for getRandomValues (LiviaMedeiro…
748 … **(SEMVER-MINOR)** **crypto**: alias webcrypto.subtle and webcrypto.getRandomValues on crypto (Ja…
776 … **(SEMVER-MINOR)** **crypto**: alias webcrypto.subtle and webcrypto.getRandomValues on crypto (Ja…
DCHANGELOG_V16.md108 …b.com/nodejs/node/commit/188c3ab918)] - **crypto**: adjust types for getRandomValues (LiviaMedeiro…
1642 …s/node/commit/d16d36f1c2)] - **crypto**: support Big(U)Int64Array in getRandomValues (Michaël Zass…
/third_party/typescript/lib/
Dlib.webworker.d.ts1102 getRandomValues<T extends ArrayBufferView | null>(array: T): T; method
/third_party/typescript/src/lib/
Dwebworker.generated.d.ts1082 getRandomValues<T extends ArrayBufferView | null>(array: T): T; method
Ddom.generated.d.ts3845 getRandomValues<T extends ArrayBufferView | null>(array: T): T; method
/third_party/typescript/tests/lib/
Dlib.d.ts16533 getRandomValues(array: ArrayBufferView): ArrayBufferView; method

12