Home
last modified time | relevance | path

Searched refs:createDiffieHellman (Results 1 – 16 of 16) sorted by relevance

/third_party/node/test/parallel/
Dtest-crypto-dh.js10 const dh1 = crypto.createDiffieHellman(size);
12 const dh2 = crypto.createDiffieHellman(p1, 'buffer');
27 assert.throws(() => crypto.createDiffieHellman(13.37), {
34 assert.throws(() => crypto.createDiffieHellman('abcdef', 13.37), {
43 assert.throws(() => crypto.createDiffieHellman(bits), {
49 assert.throws(() => crypto.createDiffieHellman(bits), {
60 crypto.createDiffieHellman('abcdef', g);
61 crypto.createDiffieHellman('abcdef', 'hex', g);
70 assert.throws(() => crypto.createDiffieHellman('abcdef', g), ex);
71 assert.throws(() => crypto.createDiffieHellman('abcdef', 'hex', g), ex);
[all …]
Dtest-crypto-dh-modp2.js13 const exmodp2 = crypto.createDiffieHellman(modp2buf, Buffer.from([2]));
25 const exmodp2 = crypto.createDiffieHellman(modp2buf, '\x02');
36 const exmodp2 = crypto.createDiffieHellman(modp2buf, 2);
Dtest-crypto-secure-heap.js18 createDiffieHellman,
33 const dh1 = createDiffieHellman(size);
35 const dh2 = createDiffieHellman(p1, 'buffer');
Dtest-crypto-dh-curves.js16 crypto.createDiffieHellman(p, 'hex');
19 const bad_dh = crypto.createDiffieHellman('02', 'hex');
Dtest-crypto-binary-default.js587 const dh1 = crypto.createDiffieHellman(size);
589 const dh2 = crypto.createDiffieHellman(p1, 'base64');
599 const dh3 = crypto.createDiffieHellman(p1, 'buffer');
618 crypto.createDiffieHellman(p, 'hex');
Dtest-crypto-dh-padding.js100 const p = crypto.createDiffieHellman(
Dtest-crypto-dh-odd-key.js33 const c = crypto.createDiffieHellman(common.hasOpenSSL3 ? 1024 : 32);
Dtest-crypto-dh-constructor.js10 const dh1 = crypto.createDiffieHellman(size);
Dtest-crypto-dh-modp2-views.js16 const exmodp2 = crypto.createDiffieHellman(buf, '02', 'hex');
Dtest-crypto-dh-leak.js16 const dh = crypto.createDiffieHellman(size);
Dtest-crypto-dh-stateless.js133 const dh = crypto.createDiffieHellman(group.getPrime(), group.getGenerator());
/third_party/node/test/pummel/
Dtest-dh-regr.js40 const p = crypto.createDiffieHellman(length).getPrime();
43 const a = crypto.createDiffieHellman(p);
44 const b = crypto.createDiffieHellman(p);
/third_party/node/lib/
Dcrypto.js152 function createDiffieHellman(sizeOrKey, keyEncoding, generator, genEncoding) { function
182 createDiffieHellman, property
/third_party/node/doc/api/
Dcrypto.md984 [`crypto.createDiffieHellman()`][] function.
990 createDiffieHellman,
994 const alice = createDiffieHellman(2048);
998 const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator());
1013 createDiffieHellman,
1017 const alice = createDiffieHellman(2048);
1021 const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator());
3229 ### `crypto.createDiffieHellman(prime[, primeEncoding][, generator][, generatorEncoding])`
3265 ### `crypto.createDiffieHellman(primeLength[, generator])`
4147 [`crypto.createDiffieHellman()`][], but will not allow changing
[all …]
/third_party/node/doc/changelogs/
DCHANGELOG_V13.md1268 …(https://github.com/nodejs/node/commit/18b34def41)] - **doc**: fix createDiffieHellman generator t…
DCHANGELOG_V12.md3272 …(https://github.com/nodejs/node/commit/2d9d59f427)] - **doc**: fix createDiffieHellman generator t…