Sha256: 5d2f8b91ac3aee1762d9f83cf493dff5e9e3c4aef9ce4aa6f05d740d88be5fc7

Contents?: true

Size: 682 Bytes

Versions: 66

Compression:

Stored size: 682 Bytes

Contents

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));

Version data entries

66 entries across 60 versions & 21 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/ecc-jsbn/test.js
disco_app-0.18.0 test/dummy/node_modules/ecc-jsbn/test.js
disco_app-0.18.2 test/dummy/node_modules/ecc-jsbn/test.js
tang-0.2.1 spec/tang_app/node_modules/ecc-jsbn/test.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/ecc-jsbn/test.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/ecc-jsbn/test.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/ecc-jsbn/test.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/ecc-jsbn/test.js
tang-0.2.0 spec/tang_app/node_modules/ecc-jsbn/test.js
tang-0.1.0 spec/tang_app/node_modules/ecc-jsbn/test.js
tang-0.0.9 spec/tang_app/node_modules/ecc-jsbn/test.js
enju_library-0.3.8 spec/dummy/node_modules/ecc-jsbn/test.js
ilog-0.4.1 node_modules/ecc-jsbn/test.js
ilog-0.4.0 node_modules/ecc-jsbn/test.js
ilog-0.3.3 node_modules/ecc-jsbn/test.js
learn_create-0.0.22 lib/templates/javascript_lab_template/node_modules/ecc-jsbn/test.js
jester-data-8.0.0 node_modules/ecc-jsbn/test.js
ezii-os-5.2.1 node_modules/ecc-jsbn/test.js
ezii-os-2.0.1 node_modules/ecc-jsbn/test.js
ezii-os-1.1.0 node_modules/ecc-jsbn/test.js