mirror of
https://github.com/hanzoai/elliptic.git
synced 2026-09-23 23:51:03 +00:00
6.5.6
This commit is contained in:
Vendored
+4
-1
@@ -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());
|
||||
@@ -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": [
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Generated
+2
-2
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "elliptic",
|
||||
"version": "6.5.5",
|
||||
"version": "6.5.6",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"version": "6.5.5",
|
||||
"version": "6.5.6",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"bn.js": "^4.11.9",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "elliptic",
|
||||
"version": "6.5.5",
|
||||
"version": "6.5.6",
|
||||
"description": "EC cryptography",
|
||||
"main": "lib/elliptic.js",
|
||||
"files": [
|
||||
|
||||
Reference in New Issue
Block a user