Skip to content

Commit

Permalink
6.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Jul 17, 2024
1 parent 7ac5360 commit 03e06e1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion dist/elliptic.js
Original file line number Diff line number Diff line change
Expand Up @@ -2762,6 +2762,9 @@ EDDSA.prototype.sign = function sign(message, secret) {
EDDSA.prototype.verify = function verify(message, sig, pub) {
message = parseBytes(message);
sig = this.makeSignature(sig);
if (sig.S().gte(sig.eddsa.curve.n) || sig.S().isNeg()) {
return false;
}
var key = this.keyFromPublic(pub);
var h = this.hashInt(sig.Rencoded(), key.pubBytes(), message);
var SG = this.g.mul(sig.S());
Expand Down Expand Up @@ -8853,7 +8856,7 @@ utils.encode = function encode(arr, enc) {
},{}],35:[function(require,module,exports){
module.exports={
"name": "elliptic",
"version": "6.5.5",
"version": "6.5.6",
"description": "EC cryptography",
"main": "lib/elliptic.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion dist/elliptic.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elliptic",
"version": "6.5.5",
"version": "6.5.6",
"description": "EC cryptography",
"main": "lib/elliptic.js",
"files": [
Expand Down

0 comments on commit 03e06e1

Please sign in to comment.