mirror of
https://github.com/sstent/aicyclingcoach-go.git
synced 2026-01-29 10:31:43 +00:00
sync
This commit is contained in:
14
node_modules/ecc-jsbn/test.js
generated
vendored
14
node_modules/ecc-jsbn/test.js
generated
vendored
@@ -1,14 +0,0 @@
|
||||
var ecc = require("./index.js");
|
||||
var key1 = new ecc.ECKey(ecc.ECCurves.secp160r1);
|
||||
var key2 = new ecc.ECKey(ecc.ECCurves.secp160r1);
|
||||
console.log(key1.deriveSharedSecret(key2));
|
||||
var key3 = new ecc.ECKey(ecc.ECCurves.secp160r1,key1.PrivateKey);
|
||||
var key4 = new ecc.ECKey(ecc.ECCurves.secp160r1,key2.PublicKey,true);
|
||||
console.log(key3.deriveSharedSecret(key4));
|
||||
|
||||
var key1 = new ecc.ECKey(ecc.ECCurves.secp256r1);
|
||||
var key2 = new ecc.ECKey(ecc.ECCurves.secp256r1);
|
||||
console.log(key1.deriveSharedSecret(key2));
|
||||
var key3 = new ecc.ECKey(ecc.ECCurves.secp256r1,key1.PrivateKey);
|
||||
var key4 = new ecc.ECKey(ecc.ECCurves.secp256r1,key2.PublicKey,true);
|
||||
console.log(key3.deriveSharedSecret(key4));
|
||||
Reference in New Issue
Block a user