Comparing version 0.14.0 to 0.14.1
@@ -100,2 +100,6 @@ var assert = require('assert'); | ||
this.priv = new bn(key, 16); | ||
// Ensure that the priv won't be bigger than n, otherwise we may fail | ||
// in fixed multiplication method | ||
this.priv = this.priv.mod(this.ecdsa.n); | ||
}; | ||
@@ -102,0 +106,0 @@ |
{ | ||
"name": "elliptic", | ||
"version": "0.14.0", | ||
"version": "0.14.1", | ||
"description": "EC cryptography", | ||
@@ -5,0 +5,0 @@ "main": "lib/elliptic.js", |
@@ -47,2 +47,7 @@ var assert = require('assert'); | ||
assert(!ecdsa.verify(msg, signature, keys), 'Wrong key verify'); | ||
// Invalid private key | ||
var keys = ecdsa.keyPair(keys.getPrivate('hex') + keys.getPrivate('hex'), | ||
'hex'); | ||
assert(!ecdsa.verify(msg, signature, keys), 'Wrong key verify'); | ||
}); | ||
@@ -49,0 +54,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112178
2932