Comparing version 6.5.6 to 6.5.7
@@ -41,2 +41,6 @@ 'use strict'; | ||
if(buf[p.place] === 0x00) { | ||
return false; | ||
} | ||
var val = 0; | ||
@@ -90,2 +94,5 @@ for (var i = 0, off = p.place; i < octetLen; i++, off++) { | ||
} | ||
if ((data[p.place] & 128) !== 0) { | ||
return false; | ||
} | ||
var r = data.slice(p.place, rlen + p.place); | ||
@@ -103,2 +110,5 @@ p.place += rlen; | ||
} | ||
if ((data[p.place] & 128) !== 0) { | ||
return false; | ||
} | ||
var s = data.slice(p.place, slen + p.place); | ||
@@ -105,0 +115,0 @@ if (r[0] === 0) { |
@@ -24,2 +24,3 @@ 'use strict'; | ||
if (Array.isArray(sig)) { | ||
assert(sig.length === eddsa.encodingLength * 2, 'Signature has invalid size'); | ||
sig = { | ||
@@ -26,0 +27,0 @@ R: sig.slice(0, eddsa.encodingLength), |
{ | ||
"name": "elliptic", | ||
"version": "6.5.6", | ||
"version": "6.5.7", | ||
"description": "EC cryptography", | ||
@@ -5,0 +5,0 @@ "main": "lib/elliptic.js", |
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
118848
3424