Skip to content

Commit 03e06e1

Browse files
committed
6.5.6
1 parent 7ac5360 commit 03e06e1

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

dist/elliptic.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -2762,6 +2762,9 @@ EDDSA.prototype.sign = function sign(message, secret) {
27622762
EDDSA.prototype.verify = function verify(message, sig, pub) {
27632763
message = parseBytes(message);
27642764
sig = this.makeSignature(sig);
2765+
if (sig.S().gte(sig.eddsa.curve.n) || sig.S().isNeg()) {
2766+
return false;
2767+
}
27652768
var key = this.keyFromPublic(pub);
27662769
var h = this.hashInt(sig.Rencoded(), key.pubBytes(), message);
27672770
var SG = this.g.mul(sig.S());
@@ -8853,7 +8856,7 @@ utils.encode = function encode(arr, enc) {
88538856
},{}],35:[function(require,module,exports){
88548857
module.exports={
88558858
"name": "elliptic",
8856-
"version": "6.5.5",
8859+
"version": "6.5.6",
88578860
"description": "EC cryptography",
88588861
"main": "lib/elliptic.js",
88598862
"files": [

dist/elliptic.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "elliptic",
3-
"version": "6.5.5",
3+
"version": "6.5.6",
44
"description": "EC cryptography",
55
"main": "lib/elliptic.js",
66
"files": [

0 commit comments

Comments
 (0)