Merge pull request #7012 from philljj/spelling_cleanup

Used codespell and fixed obvious typos.
This commit is contained in:
Sean Parkinson
2023-12-01 07:24:21 +10:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@ -12091,7 +12091,7 @@ void TLSX_FreeAll(TLSX* list, void* heap)
#ifdef WOLFSSL_SEND_HRR_COOKIE #ifdef WOLFSSL_SEND_HRR_COOKIE
case TLSX_COOKIE: case TLSX_COOKIE:
WOLFSSL_MSG("Cookie extension freee"); WOLFSSL_MSG("Cookie extension free");
CKE_FREE_ALL((Cookie*)extension->data, heap); CKE_FREE_ALL((Cookie*)extension->data, heap);
break; break;
#endif #endif

View File

@ -2628,8 +2628,8 @@ static int RsaFunctionPrivate(mp_int* tmp, RsaKey* key, WC_RNG* rng)
#endif /* RSA_LOW_MEM */ #endif /* RSA_LOW_MEM */
#if defined(WC_RSA_BLINDING) && !defined(WC_NO_RNG) #if defined(WC_RSA_BLINDING) && !defined(WC_NO_RNG)
/* Multiply result (tmp) by bliding invertor (rndi). /* Multiply result (tmp) by blinding invertor (rndi).
* Use Montogemery form to make operation more constant time. * Use Montgomery form to make operation more constant time.
*/ */
if ((ret == 0) && (mp_montgomery_setup(&key->n, &mp) != MP_OKAY)) { if ((ret == 0) && (mp_montgomery_setup(&key->n, &mp) != MP_OKAY)) {
ret = MP_MULMOD_E; ret = MP_MULMOD_E;
@ -2638,7 +2638,7 @@ static int RsaFunctionPrivate(mp_int* tmp, RsaKey* key, WC_RNG* rng)
MP_OKAY)) { MP_OKAY)) {
ret = MP_MULMOD_E; ret = MP_MULMOD_E;
} }
/* Convert blinding invert to Montogmery form. */ /* Convert blinding invert to Montgomery form. */
if ((ret == 0) && (mp_mul(rndi, rnd, rndi) != MP_OKAY)) { if ((ret == 0) && (mp_mul(rndi, rnd, rndi) != MP_OKAY)) {
ret = MP_MULMOD_E; ret = MP_MULMOD_E;
} }