Home
last modified time | relevance | path

Searched refs:webcrypto (Results 1 – 25 of 49) sorted by relevance

12

/third_party/node/test/parallel/
Dtest-webcrypto-encrypt-decrypt.js9 const { webcrypto } = require('crypto');
10 const { subtle } = webcrypto;
17 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.js10 const { webcrypto } = require('crypto');
19 () => webcrypto.getRandomValues(i),
26 webcrypto.getRandomValues(buf);
44 webcrypto.getRandomValues(buf);
52 webcrypto.getRandomValues(buf);
67 () => webcrypto.getRandomValues(kData),
Dtest-global-webcrypto-classes.js9 const webcrypto = require('internal/crypto/webcrypto'); constant
11 assert.strictEqual(Crypto, webcrypto.Crypto);
12 assert.strictEqual(CryptoKey, webcrypto.CryptoKey);
13 assert.strictEqual(SubtleCrypto, webcrypto.SubtleCrypto);
Dtest-global-webcrypto.js11 assert.strictEqual(globalThis.crypto, crypto.webcrypto);
12 assert.strictEqual(Crypto, crypto.webcrypto.constructor);
13 assert.strictEqual(SubtleCrypto, crypto.webcrypto.subtle.constructor);
Dtest-webcrypto-encrypt-decrypt-aes.js9 const { webcrypto } = require('crypto');
10 const { subtle } = webcrypto;
217 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.js9 const { webcrypto } = require('crypto');
10 const { subtle } = webcrypto;
14 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.js9 const { webcrypto } = require('crypto');
10 const { subtle } = webcrypto;
171 const keyData = webcrypto.getRandomValues(new Uint8Array(32));
Dtest-webcrypto-derivekey-ecdh.js9 const { webcrypto } = require('crypto');
10 const { subtle } = webcrypto;
230 const keyData = webcrypto.getRandomValues(new Uint8Array(32));
Dtest-webcrypto-derivebits-cfrg.js9 const { webcrypto } = require('crypto');
10 const { subtle } = webcrypto;
199 const keyData = webcrypto.getRandomValues(new Uint8Array(32));
Dtest-webcrypto-derivebits-ecdh.js9 const { webcrypto } = require('crypto');
10 const { subtle } = webcrypto;
254 const keyData = webcrypto.getRandomValues(new Uint8Array(32));
Dtest-crypto-psychic-signatures.js83 crypto.webcrypto.subtle.importKey(
90 return crypto.webcrypto.subtle.verify(
Dtest-webcrypto-getRandomValues.js9 const { getRandomValues } = require('crypto').webcrypto;
Dtest-crypto-webcrypto-aes-decrypt-tag-too-small.js9 const crypto = require('crypto').webcrypto;
Dtest-crypto-subtle-zero-length.js9 const crypto = require('crypto').webcrypto;
Dtest-webcrypto-cryptokey-workers.js11 const { subtle } = require('crypto').webcrypto;
Dtest-webcrypto-derivebits.js10 const { subtle } = require('crypto').webcrypto;
Dtest-webcrypto-sign-verify.js9 const { subtle } = require('crypto').webcrypto;
Dtest-webcrypto-digest.js10 const { subtle } = require('crypto').webcrypto;
Dtest-webcrypto-sign-verify-hmac.js9 const { subtle } = require('crypto').webcrypto;
/third_party/node/tools/doc/
Dtype-parser.mjs83 'CryptoKey': 'webcrypto.html#class-cryptokey',
84 'CryptoKeyPair': 'webcrypto.html#class-cryptokeypair',
85 'Crypto': 'webcrypto.html#class-crypto',
86 'SubtleCrypto': 'webcrypto.html#class-subtlecrypto',
87 'RsaOaepParams': 'webcrypto.html#class-rsaoaepparams',
88 'AlgorithmIdentifier': 'webcrypto.html#class-algorithmidentifier',
89 'AesCtrParams': 'webcrypto.html#class-aesctrparams',
90 'AesCbcParams': 'webcrypto.html#class-aescbcparams',
91 'AesGcmParams': 'webcrypto.html#class-aesgcmparams',
92 'EcdhKeyDeriveParams': 'webcrypto.html#class-ecdhkeyderiveparams',
[all …]
/third_party/node/benchmark/crypto/
Dwebcrypto-digest.js6 webcrypto,
8 const { subtle } = webcrypto;
51 data = webcrypto.getRandomValues(Buffer.alloc(data));
/third_party/node/lib/internal/process/
Dpre_execution.js280 let webcrypto;
284 webcrypto ??= require('internal/crypto/webcrypto');
285 return webcrypto.crypto;
289 webcrypto ??= require('internal/crypto/webcrypto');
290 exposeInterface(globalThis, 'Crypto', webcrypto.Crypto);
291 exposeInterface(globalThis, 'CryptoKey', webcrypto.CryptoKey);
292 exposeInterface(globalThis, 'SubtleCrypto', webcrypto.SubtleCrypto);
/third_party/node/lib/
Dcrypto.js124 let webcrypto; variable
126 webcrypto ??= require('internal/crypto/webcrypto');
127 return webcrypto;
365 webcrypto: { property
/third_party/node/doc/api/
Dwebcrypto.md36 Use `require('node:crypto').webcrypto` to access this module.
39 const { subtle } = require('node:crypto').webcrypto;
69 const { subtle } = require('node:crypto').webcrypto;
84 const { subtle } = require('node:crypto').webcrypto;
104 const { subtle } = require('node:crypto').webcrypto;
122 const { subtle } = require('node:crypto').webcrypto;
137 const { subtle } = require('node:crypto').webcrypto;
158 const crypto = require('node:crypto').webcrypto;
191 const { subtle } = require('node:crypto').webcrypto;
215 const { subtle } = require('node:crypto').webcrypto;
[all …]
Dglobals.md359 > [`--experimental-global-webcrypto`][] CLI flag.
372 > [`--experimental-global-webcrypto`][] CLI flag.
383 > [`--experimental-global-webcrypto`][] CLI flag.
745 > [`--experimental-global-webcrypto`][] CLI flag.
887 [Web Crypto API]: webcrypto.md
889 [`--experimental-global-webcrypto`]: cli.md#--experimental-global-webcrypto

12