Lines Matching refs:createDiffieHellman
11 const dh1 = crypto.createDiffieHellman(common.hasFipsCrypto ? 1024 : 256);
13 const dh2 = crypto.createDiffieHellman(p1, 'buffer');
26 assert.throws(() => crypto.createDiffieHellman(13.37), {
33 assert.throws(() => crypto.createDiffieHellman('abcdef', 13.37), {
41 assert.throws(() => crypto.createDiffieHellman(bits), {
51 crypto.createDiffieHellman('abcdef', g);
52 crypto.createDiffieHellman('abcdef', 'hex', g);
61 assert.throws(() => crypto.createDiffieHellman('abcdef', g), ex);
62 assert.throws(() => crypto.createDiffieHellman('abcdef', 'hex', g), ex);
65 crypto.createDiffieHellman('abcdef', Buffer.from([2])); // OK
75 assert.throws(() => crypto.createDiffieHellman('abcdef', g), ex);
76 assert.throws(() => crypto.createDiffieHellman('abcdef', 'hex', g), ex);
108 () => crypto.createDiffieHellman(input),
121 const dh3 = crypto.createDiffieHellman(p1, 'buffer');
137 const dh4 = crypto.createDiffieHellman(p1, 'buffer');
206 const exmodp2 = crypto.createDiffieHellman(modp2buf, Buffer.from([2]));
219 const exmodp2 = crypto.createDiffieHellman(buf, '02', 'hex');
230 const exmodp2 = crypto.createDiffieHellman(modp2buf, '\x02');
241 const exmodp2 = crypto.createDiffieHellman(modp2buf, 2);
257 crypto.createDiffieHellman(p, 'hex');
260 const bad_dh = crypto.createDiffieHellman('02', 'hex');
475 () => crypto.createDiffieHellman('', true),