Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions wolfcrypt/src/sp_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -13796,7 +13796,7 @@ static int _sp_exptmod_nct(const sp_int* b, const sp_int* e, const sp_int* m,
bits = sp_count_bits(e);

/* Window bits based on number of pre-calculations versus number of loop
* calculcations.
* calculations.
* Exponents for RSA and DH will result in 6-bit windows.
* Note: for 4096-bit values, 7-bit window is slightly better.
*/
Expand Down Expand Up @@ -13833,7 +13833,7 @@ static int _sp_exptmod_nct(const sp_int* b, const sp_int* e, const sp_int* m,
tr = t[preCnt + 0];
bm = t[preCnt + 1];

/* Iniitialize all allocated */
/* Initialize all allocated */
for (i = 0; i < preCnt; i++) {
_sp_init_size(t[i], m->used * 2 + 1);
}
Expand Down Expand Up @@ -13981,7 +13981,7 @@ static int _sp_exptmod_nct(const sp_int* b, const sp_int* e, const sp_int* m,
break;
}

/* 4.4. Get top window bits from expononent and drop. */
/* 4.4. Get top window bits from exponent and drop. */
if (err == MP_OKAY) {
if (c == 0) {
/* Bits from next digit. */
Expand Down