Skip to content

Commit

Permalink
lib: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Mar 5, 2024
1 parent 0a78e03 commit 206da2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/elliptic/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,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);
for (var i = 0; i < naf.length; i += 1) {
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

0 comments on commit 206da2e

Please sign in to comment.