diff --git a/include/mbedtls/mbedtls_config.h b/include/mbedtls/mbedtls_config.h index 4814d50f8..68b1e4024 100644 --- a/include/mbedtls/mbedtls_config.h +++ b/include/mbedtls/mbedtls_config.h @@ -705,7 +705,7 @@ * - Changes the behaviour of TLS 1.2 clients (not servers) when using the * ECDHE-ECDSA key exchange (not other key exchanges) to make all ECC * computations restartable: - * - ECDH operations from the key exchange, only for Short Weierstass + * - ECDH operations from the key exchange, only for Short Weierstrass * curves, only when MBEDTLS_USE_PSA_CRYPTO is not enabled. * - verification of the server's key exchange signature; * - verification of the server's certificate chain; diff --git a/library/aesce.c b/library/aesce.c index ee0c8e12c..0f6c323b8 100644 --- a/library/aesce.c +++ b/library/aesce.c @@ -39,7 +39,7 @@ #endif #if !defined(__ARM_FEATURE_CRYPTO) -# error "`crypto` feature moddifier MUST be enabled for MBEDTLS_AESCE_C." +# error "`crypto` feature modifier MUST be enabled for MBEDTLS_AESCE_C." # error "Typical option for GCC and Clang is `-march=armv8-a+crypto`." #endif /* !__ARM_FEATURE_CRYPTO */ diff --git a/library/bignum_core.h b/library/bignum_core.h index 4fb8f658c..05bc923d2 100644 --- a/library/bignum_core.h +++ b/library/bignum_core.h @@ -663,7 +663,7 @@ static inline size_t mbedtls_mpi_core_montmul_working_limbs(size_t AN_limbs) * * \p X may be aliased to \p A, but may not otherwise overlap it. * - * \p X may not alias \p N (it is in canonical form, so must be stricly less + * \p X may not alias \p N (it is in canonical form, so must be strictly less * than \p N). Nor may it alias or overlap \p rr (this is unlikely to be * required in practice.) * @@ -702,7 +702,7 @@ void mbedtls_mpi_core_to_mont_rep(mbedtls_mpi_uint *X, * * \p X may be aliased to \p A, but may not otherwise overlap it. * - * \p X may not alias \p N (it is in canonical form, so must be stricly less + * \p X may not alias \p N (it is in canonical form, so must be strictly less * than \p N). * * This function is a thin wrapper around `mbedtls_mpi_core_montmul()` that is diff --git a/library/ecp_curves.c b/library/ecp_curves.c index 81ad73a6f..f60f8b174 100644 --- a/library/ecp_curves.c +++ b/library/ecp_curves.c @@ -5403,7 +5403,7 @@ int mbedtls_ecp_mod_p521_raw(mbedtls_mpi_uint *X, size_t X_limbs) addend += (X[P521_WIDTH - 1] >> 9); X[P521_WIDTH - 1] &= P521_MASK; - /* Resuse the top part of X (already zeroed) as a helper array for + /* Reuse the top part of X (already zeroed) as a helper array for * carrying out the addition. */ mbedtls_mpi_uint *addend_arr = X + P521_WIDTH; addend_arr[0] = addend; diff --git a/library/pkcs7.c b/library/pkcs7.c index 010d7066e..d4059d745 100644 --- a/library/pkcs7.c +++ b/library/pkcs7.c @@ -354,7 +354,7 @@ static int pkcs7_get_signer_info(unsigned char **p, unsigned char *end, goto out; } - /* Asssume authenticatedAttributes is nonexistent */ + /* Assume authenticatedAttributes is nonexistent */ ret = pkcs7_get_digest_algorithm(p, end_signer, &signer->sig_alg_identifier); if (ret != 0) { goto out; diff --git a/library/sha256.c b/library/sha256.c index 23cd406c3..605b2b041 100644 --- a/library/sha256.c +++ b/library/sha256.c @@ -63,7 +63,7 @@ # pragma clang attribute push (__attribute__((target("crypto"))), apply_to=function) # define MBEDTLS_POP_TARGET_PRAGMA # elif defined(__GNUC__) - /* FIXME: GCC-5 annouce crypto extension, but some intrinsic are missed. + /* FIXME: GCC-5 claims crypto extension, but some intrinsic are missed. * Known miss intrinsic can be workaround. */ # if __GNUC__ < 6 diff --git a/library/ssl_tls13_client.c b/library/ssl_tls13_client.c index 0dd762ef3..290c4c6c0 100644 --- a/library/ssl_tls13_client.c +++ b/library/ssl_tls13_client.c @@ -1270,7 +1270,7 @@ int mbedtls_ssl_tls13_finalize_client_hello(mbedtls_ssl_context *ssl) ssl->session_negotiate->ciphersuite); ssl->handshake->ciphersuite_info = ciphersuite_info; - /* Enable psk and psk_ephermal to make stage early happy */ + /* Enable psk and psk_ephemeral to make stage early happy */ ssl->handshake->key_exchange_mode = MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ALL; diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 03034d117..43e2d127a 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -425,7 +425,7 @@ int main(void) " reconnect=%%d number of reconnections using session resumption\n" \ " default: 0 (disabled)\n" \ " reco_server_name=%%s default: NULL\n" \ - " reco_delay=%%d default: 0 millionseconds\n" \ + " reco_delay=%%d default: 0 milliseconds\n" \ " reco_mode=%%d 0: copy session, 1: serialize session\n" \ " default: 1\n" \ " reconnect_hard=%%d default: 0 (disabled)\n" \