Lines Matching refs:alice
593 const alice = crypto.createDiffieHellman(2048);
594 const aliceKey = alice.generateKeys();
597 const bob = crypto.createDiffieHellman(alice.getPrime(), alice.getGenerator());
601 const aliceSecret = alice.computeSecret(bobKey);
778 const alice = crypto.createECDH('secp521r1');
779 const aliceKey = alice.generateKeys();
786 const aliceSecret = alice.computeSecret(bobKey);
967 const alice = crypto.createECDH('secp256k1');
973 alice.setPrivateKey(
974 crypto.createHash('sha256').update('alice', 'utf8').digest()
981 const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex');
982 const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex');
2321 const alice = crypto.getDiffieHellman('modp14');
2324 alice.generateKeys();
2327 const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex');
2328 const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex');