Home
last modified time | relevance | path

Searched refs:computeSecret (Results 1 – 11 of 11) sorted by relevance

/third_party/node/test/parallel/
Dtest-crypto-dh.js16 let secret1 = dh1.computeSecret(key2, 'hex', 'base64');
17 let secret2 = dh2.computeSecret(key1, 'latin1', 'buffer');
132 const secret3 = dh3.computeSecret(key2, 'hex', 'base64');
145 const secret4 = dh4.computeSecret(key2, 'hex', 'base64');
173 dh3.computeSecret('');
181 const aSecret = alice.computeSecret(bob.getPublicKey()).toString('hex');
182 const bSecret = bob.computeSecret(alice.getPublicKey()).toString('hex');
209 const modp2Secret = modp2.computeSecret(exmodp2.getPublicKey())
211 const exmodp2Secret = exmodp2.computeSecret(modp2.getPublicKey())
221 const modp2Secret = modp2.computeSecret(exmodp2.getPublicKey())
[all …]
Dtest-crypto-dh-padding.js107 p.computeSecret(bpub, 'hex', 'hex').toString('hex'),
Dtest-crypto-binary-default.js591 const secret1 = dh1.computeSecret(key2, 'hex', 'base64');
592 const secret2 = dh2.computeSecret(key1, 'latin1', 'buffer');
608 const secret3 = dh3.computeSecret(key2, 'hex', 'base64');
Dtest-crypto-dh-stateless.js127 dh.computeSecret(publicKey));
/third_party/node/lib/internal/crypto/
Ddiffiehellman.js125 DiffieHellmanGroup.prototype.computeSecret = method in DiffieHellmanGroup
126 DiffieHellman.prototype.computeSecret = method in DiffieHellman
133 const ret = this[kHandle].computeSecret(toBuf(key, inEnc));
206 ECDH.prototype.computeSecret = DiffieHellman.prototype.computeSecret; method in ECDH
/third_party/node/test/pummel/
Dtest-crypto-dh-keys.js46 const key1 = group1.computeSecret(group2.getPublicKey());
47 const key2 = group2.computeSecret(group1.getPublicKey());
Dtest-dh-regr.js50 const aSecret = a.computeSecret(b.getPublicKey());
51 const bSecret = b.computeSecret(a.getPublicKey());
/third_party/node/benchmark/crypto/
Dcipher-stream.js30 const alice_secret = alice.computeSecret(bob.getPublicKey(), pubEnc, 'hex');
31 const bob_secret = bob.computeSecret(alice.getPublicKey(), pubEnc, 'hex');
/third_party/node/deps/npm/node_modules/sshpk/lib/
Ddhe.js161 DiffieHellman.prototype.computeSecret = function (otherpk) { method in DiffieHellman
169 return (this._dh.computeSecret(
174 return (this._dh.computeSecret(
/third_party/node/doc/api/
Dcrypto.md601 const aliceSecret = alice.computeSecret(bobKey);
602 const bobSecret = bob.computeSecret(aliceKey);
608 ### `diffieHellman.computeSecret(otherPublicKey[, inputEncoding][, outputEncoding])`
786 const aliceSecret = alice.computeSecret(bobKey);
787 const bobSecret = bob.computeSecret(aliceKey);
841 ### `ecdh.computeSecret(otherPublicKey[, inputEncoding][, outputEncoding])`
870 `ecdh.computeSecret` will throw an
981 const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex');
982 const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex');
2327 const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex');
[all …]
Derrors.md781 `crypto.ECDH()` class `computeSecret()` method. It means that the public