Skip to content

Commit

Permalink
6.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Aug 14, 2024
1 parent accb61e commit 3e46a48
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
13 changes: 12 additions & 1 deletion dist/elliptic.js
Original file line number Diff line number Diff line change
Expand Up @@ -2580,6 +2580,10 @@ function getLength(buf, p) {
return false;
}

if(buf[p.place] === 0x00) {

This comment has been minimized.

Copy link
@KolomboPulse

KolomboPulse Sep 23, 2024

if(buf[p.place] === 0x00) {

return false;

This comment has been minimized.

Copy link
@KolomboPulse

KolomboPulse Sep 23, 2024

return false;

}

This comment has been minimized.

Copy link
@KolomboPulse

var val = 0;
for (var i = 0, off = p.place; i < octetLen; i++, off++) {
val <<= 8;
Expand Down Expand Up @@ -2628,6 +2632,9 @@ Signature.prototype._importDER = function _importDER(data, enc) {
if (rlen === false) {
return false;
}
if ((data[p.place] & 128) !== 0) {

This comment has been minimized.

Copy link
@KolomboPulse

KolomboPulse Sep 23, 2024

if ((data[p.place] & 128) !== 0) {

return false;

This comment has been minimized.

Copy link
@KolomboPulse

KolomboPulse Sep 23, 2024

return false;

}
var r = data.slice(p.place, rlen + p.place);
p.place += rlen;
if (data[p.place++] !== 0x02) {
Expand All @@ -2640,6 +2647,9 @@ Signature.prototype._importDER = function _importDER(data, enc) {
if (data.length !== slen + p.place) {
return false;
}
if ((data[p.place] & 128) !== 0) {

This comment has been minimized.

Copy link
@KolomboPulse

KolomboPulse Sep 23, 2024

if ((data[p.place] & 128) !== 0) {

return false;

This comment has been minimized.

Copy link
@KolomboPulse

KolomboPulse Sep 23, 2024

return false;

}
var s = data.slice(p.place, slen + p.place);
if (r[0] === 0) {
if (r[1] & 0x80) {
Expand Down Expand Up @@ -2951,6 +2961,7 @@ function Signature(eddsa, sig) {
sig = parseBytes(sig);

if (Array.isArray(sig)) {
assert(sig.length === eddsa.encodingLength * 2, 'Signature has invalid size');

This comment has been minimized.

Copy link
@KolomboPulse

KolomboPulse Sep 23, 2024

assert(sig.length === eddsa.encodingLength * 2, 'Signature has invalid size');

sig = {
R: sig.slice(0, eddsa.encodingLength),
S: sig.slice(eddsa.encodingLength),
Expand Down Expand Up @@ -8856,7 +8867,7 @@ utils.encode = function encode(arr, enc) {
},{}],35:[function(require,module,exports){
module.exports={
"name": "elliptic",
"version": "6.5.6",

This comment has been minimized.

Copy link
@KolomboPulse
"version": "6.5.7",

This comment has been minimized.

Copy link
@KolomboPulse
"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.6",

This comment has been minimized.

Copy link
@KolomboPulse
"version": "6.5.7",

This comment has been minimized.

Copy link
@KolomboPulse
"description": "EC cryptography",
"main": "lib/elliptic.js",
"files": [
Expand Down

0 comments on commit 3e46a48

Please sign in to comment.