Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
/ lib/ node_modules/ npm/ node_modules/ ecc-jsbn/ |
|
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));