Lines Matching refs:bob
24 const bob = crypto.getDiffieHellman('modp5');
27 bob.generateKeys();
30 const alice_secret = alice.computeSecret(bob.getPublicKey(), pubEnc, 'hex');
31 const bob_secret = bob.computeSecret(alice.getPublicKey(), pubEnc, 'hex');
59 // Write data as fast as possible to alice, and have bob decrypt.
65 function streamWrite(alice, bob, message, encoding, writes) {
67 bob.on('data', (c) => {
71 bob.on('end', () => {
78 alice.pipe(bob);
86 function legacyWrite(alice, bob, message, encoding, writes) {
91 dec = bob.update(enc);
95 dec = bob.update(enc);
97 dec = bob.final();