Skip to content

Commit fd13d37

Browse files
authored
Merge pull request #6630 from JacobBarthelmeh/spelling
spelling fixes
2 parents 58318f9 + b74a7f8 commit fd13d37

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wolfcrypt/src/sp_int.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13796,7 +13796,7 @@ static int _sp_exptmod_nct(const sp_int* b, const sp_int* e, const sp_int* m,
1379613796
bits = sp_count_bits(e);
1379713797

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

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

13984-
/* 4.4. Get top window bits from expononent and drop. */
13984+
/* 4.4. Get top window bits from exponent and drop. */
1398513985
if (err == MP_OKAY) {
1398613986
if (c == 0) {
1398713987
/* Bits from next digit. */

0 commit comments

Comments
 (0)