Home
last modified time | relevance | path

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

/third_party/node/test/parallel/
Dtest-crypto-dh.js11 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
[all …]
Dtest-crypto-binary-default.js586 const dh1 = crypto.createDiffieHellman(common.hasFipsCrypto ? 1024 : 256);
588 const dh2 = crypto.createDiffieHellman(p1, 'base64');
598 const dh3 = crypto.createDiffieHellman(p1, 'buffer');
617 crypto.createDiffieHellman(p, 'hex');
Dtest-crypto-dh-odd-key.js33 const c = crypto.createDiffieHellman(32);
Dtest-crypto-dh-padding.js100 const p = crypto.createDiffieHellman(
Dtest-crypto-dh-leak.js15 const dh = crypto.createDiffieHellman(common.hasFipsCrypto ? 1024 : 256);
Dtest-crypto-dh-stateless.js120 const dh = crypto.createDiffieHellman(group.getPrime(), group.getGenerator());
/third_party/node/test/pummel/
Dtest-dh-regr.js41 const p = crypto.createDiffieHellman(length).getPrime();
44 const a = crypto.createDiffieHellman(p);
45 const b = crypto.createDiffieHellman(p);
/third_party/node/lib/
Dcrypto.js133 function createDiffieHellman(sizeOrKey, keyEncoding, generator, genEncoding) { function
161 createDiffieHellman, property
/third_party/node/deps/npm/node_modules/sshpk/lib/
Dkey.js208 Key.prototype.createDiffieHellman = function () { method in Key
214 Key.prototype.createDH = Key.prototype.createDiffieHellman;
Ddhe.js35 this._dh = crypto.createDiffieHellman(
/third_party/node/doc/api/
Dcrypto.md586 [`crypto.createDiffieHellman()`][] function.
593 const alice = crypto.createDiffieHellman(2048);
597 const bob = crypto.createDiffieHellman(alice.getPrime(), alice.getGenerator());
1849 ### `crypto.createDiffieHellman(prime[, primeEncoding][, generator][, generatorEncoding])`
1884 ### `crypto.createDiffieHellman(primeLength[, generator])`
2311 [`crypto.createDiffieHellman()`][], but will not allow changing
3620 [`crypto.createDiffieHellman()`]: #crypto_crypto_creatediffiehellman_prime_primeencoding_generator_…
/third_party/node/deps/npm/node_modules/sshpk/
DREADME.md205 ### `Key#createDiffieHellman()`
/third_party/node/doc/changelogs/
DCHANGELOG_V13.md898 …(https://github.com/nodejs/node/commit/18b34def41)] - **doc**: fix createDiffieHellman generator t…
DCHANGELOG_V12.md862 …(https://github.com/nodejs/node/commit/2d9d59f427)] - **doc**: fix createDiffieHellman generator t…