Skip to content

Commit

Permalink
6.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Mar 5, 2024
1 parent 206da2e commit 7570078
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions dist/elliptic.js
Original file line number Diff line number Diff line change
Expand Up @@ -3790,12 +3790,15 @@ utils.encode = minUtils.encode;
// Represent num in a w-NAF form
function getNAF(num, w, bits) {
var naf = new Array(Math.max(num.bitLength(), bits) + 1);
naf.fill(0);
var i;
for (i = 0; i < naf.length; i += 1) {
naf[i] = 0;
}

var ws = 1 << (w + 1);
var k = num.clone();

for (var i = 0; i < naf.length; i++) {
for (i = 0; i < naf.length; i++) {
var z;
var mod = k.andln(ws - 1);
if (k.isOdd()) {
Expand Down Expand Up @@ -8850,7 +8853,7 @@ utils.encode = function encode(arr, enc) {
},{}],35:[function(require,module,exports){
module.exports={
"name": "elliptic",
"version": "6.5.4",
"version": "6.5.5",
"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.4",
"version": "6.5.5",
"description": "EC cryptography",
"main": "lib/elliptic.js",
"files": [
Expand Down

0 comments on commit 7570078

Please sign in to comment.