mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
Fix typos
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
fe780a3c4b
commit
5c8505f061
@ -705,7 +705,7 @@
|
|||||||
* - Changes the behaviour of TLS 1.2 clients (not servers) when using the
|
* - 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
|
* ECDHE-ECDSA key exchange (not other key exchanges) to make all ECC
|
||||||
* computations restartable:
|
* 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.
|
* curves, only when MBEDTLS_USE_PSA_CRYPTO is not enabled.
|
||||||
* - verification of the server's key exchange signature;
|
* - verification of the server's key exchange signature;
|
||||||
* - verification of the server's certificate chain;
|
* - verification of the server's certificate chain;
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__ARM_FEATURE_CRYPTO)
|
#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`."
|
# error "Typical option for GCC and Clang is `-march=armv8-a+crypto`."
|
||||||
#endif /* !__ARM_FEATURE_CRYPTO */
|
#endif /* !__ARM_FEATURE_CRYPTO */
|
||||||
|
|
||||||
|
@ -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 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
|
* than \p N). Nor may it alias or overlap \p rr (this is unlikely to be
|
||||||
* required in practice.)
|
* 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 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).
|
* than \p N).
|
||||||
*
|
*
|
||||||
* This function is a thin wrapper around `mbedtls_mpi_core_montmul()` that is
|
* This function is a thin wrapper around `mbedtls_mpi_core_montmul()` that is
|
||||||
|
@ -5403,7 +5403,7 @@ int mbedtls_ecp_mod_p521_raw(mbedtls_mpi_uint *X, size_t X_limbs)
|
|||||||
addend += (X[P521_WIDTH - 1] >> 9);
|
addend += (X[P521_WIDTH - 1] >> 9);
|
||||||
X[P521_WIDTH - 1] &= P521_MASK;
|
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. */
|
* carrying out the addition. */
|
||||||
mbedtls_mpi_uint *addend_arr = X + P521_WIDTH;
|
mbedtls_mpi_uint *addend_arr = X + P521_WIDTH;
|
||||||
addend_arr[0] = addend;
|
addend_arr[0] = addend;
|
||||||
|
@ -354,7 +354,7 @@ static int pkcs7_get_signer_info(unsigned char **p, unsigned char *end,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Asssume authenticatedAttributes is nonexistent */
|
/* Assume authenticatedAttributes is nonexistent */
|
||||||
ret = pkcs7_get_digest_algorithm(p, end_signer, &signer->sig_alg_identifier);
|
ret = pkcs7_get_digest_algorithm(p, end_signer, &signer->sig_alg_identifier);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
goto out;
|
goto out;
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
# pragma clang attribute push (__attribute__((target("crypto"))), apply_to=function)
|
# pragma clang attribute push (__attribute__((target("crypto"))), apply_to=function)
|
||||||
# define MBEDTLS_POP_TARGET_PRAGMA
|
# define MBEDTLS_POP_TARGET_PRAGMA
|
||||||
# elif defined(__GNUC__)
|
# 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.
|
* Known miss intrinsic can be workaround.
|
||||||
*/
|
*/
|
||||||
# if __GNUC__ < 6
|
# if __GNUC__ < 6
|
||||||
|
@ -1270,7 +1270,7 @@ int mbedtls_ssl_tls13_finalize_client_hello(mbedtls_ssl_context *ssl)
|
|||||||
ssl->session_negotiate->ciphersuite);
|
ssl->session_negotiate->ciphersuite);
|
||||||
ssl->handshake->ciphersuite_info = ciphersuite_info;
|
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 =
|
ssl->handshake->key_exchange_mode =
|
||||||
MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ALL;
|
MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ALL;
|
||||||
|
|
||||||
|
@ -425,7 +425,7 @@ int main(void)
|
|||||||
" reconnect=%%d number of reconnections using session resumption\n" \
|
" reconnect=%%d number of reconnections using session resumption\n" \
|
||||||
" default: 0 (disabled)\n" \
|
" default: 0 (disabled)\n" \
|
||||||
" reco_server_name=%%s default: NULL\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" \
|
" reco_mode=%%d 0: copy session, 1: serialize session\n" \
|
||||||
" default: 1\n" \
|
" default: 1\n" \
|
||||||
" reconnect_hard=%%d default: 0 (disabled)\n" \
|
" reconnect_hard=%%d default: 0 (disabled)\n" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user