Lines Matching refs:alice
23 const alice = crypto.getDiffieHellman('modp5');
26 alice.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) {
78 alice.pipe(bob);
81 alice.write(message, encoding);
83 alice.end();
86 function legacyWrite(alice, bob, message, encoding, writes) {
90 enc = alice.update(message, encoding);
94 enc = alice.final();