summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/ecc-jsbn/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/ecc-jsbn/index.js')
-rwxr-xr-xdeps/npm/node_modules/ecc-jsbn/index.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/npm/node_modules/ecc-jsbn/index.js b/deps/npm/node_modules/ecc-jsbn/index.js
index 2c2a55aef5..fb19a1d6fc 100755
--- a/deps/npm/node_modules/ecc-jsbn/index.js
+++ b/deps/npm/node_modules/ecc-jsbn/index.js
@@ -26,11 +26,11 @@ exports.ECKey = function(curve, key, isPublic)
// var y = key.slice(bytes+1);
// this.P = new ECPointFp(curve,
// curve.fromBigInteger(new BigInteger(x.toString("hex"), 16)),
-// curve.fromBigInteger(new BigInteger(y.toString("hex"), 16)));
+// curve.fromBigInteger(new BigInteger(y.toString("hex"), 16)));
this.P = curve.decodePointHex(key.toString("hex"));
}else{
if(key.length != bytes) return false;
- priv = new BigInteger(key.toString("hex"), 16);
+ priv = new BigInteger(key.toString("hex"), 16);
}
}else{
var n1 = n.subtract(BigInteger.ONE);
@@ -52,6 +52,7 @@ exports.ECKey = function(curve, key, isPublic)
if(!key || !key.P) return false;
var S = key.P.multiply(priv);
return Buffer.from(unstupid(S.getX().toBigInteger().toString(16),bytes*2),"hex");
- }
+ }
}
}
+