Browse Source

Fixing some typos. Thanks to Fossies for the report

kaleb-himes 4 years ago
parent
commit
9b8d4e91c2

+ 3 - 3
ChangeLog.md

@@ -1020,7 +1020,7 @@ More info can be found on-line at https://wolfssl.com/wolfSSL/Docs.html
 - Add helper functions for static memory option to allow getting optimum buffer
   sizes.
 - Update DTLS behavior on bad MAC. DTLS silently drops packets with bad MACs now.
-- Update fp_isprime function from libtom enchancement/cleanup repository.
+- Update fp_isprime function from libtom enhancement/cleanup repository.
 - Update sanity checks on inputs and return values for AES-CMAC.
 - Update wolfSSL for use with MYSQL v5.6.30.
 - Update LPCXpresso eclipse project to not include misc.c when not needed.
@@ -1347,7 +1347,7 @@ More info can be found on-line at //http://wolfssl.com/yaSSL/Docs.html
   the Prosecco team at INRIA Paris-Rocquencourt for the report.
 - FIPS version submitted
 - Removes SSLv2 Client Hello processing, can be enabled with OLD_HELLO_ALLOWED
-- User can set mimimum downgrade version with CyaSSL_SetMinVersion()
+- User can set minimum downgrade version with CyaSSL_SetMinVersion()
 - Small stack improvements at TLS/SSL layer
 - TLS Master Secret generation and Key Expansion are now exposed
 - Adds client side Secure Renegotiation, * not recommended *
@@ -2014,7 +2014,7 @@ works but seems to remove sockets from  TIME_WAIT entirely?
 
 `sudo sysctl -w net.ipv4.tcp_fin_timeout=1`
 
-doen't control TIME_WAIT, it controls FIN_WAIT(2) contrary to some posts
+doesn't control TIME_WAIT, it controls FIN_WAIT(2) contrary to some posts
 
 
 # CyaSSL Release 1.4.0 (2/18/2010)

+ 2 - 2
IDE/HEXAGON/README.md

@@ -1,7 +1,7 @@
 # Building wolfSSL with DSP Use
 
 ## Intro
-This directory is to help with building wolfSSL for use with DSP. It assumes that the Hexagon SDK has been setup on the machine and that the enviorment variables have been set by calling (source ~/Qualcomm/Hexagon_SDK/3.4.3/setup_sdk_env.source). Currently offloading ECC 256 verify operations to the DSP is supported. When WOLFSSL_DSP is defined ECC verify operations are offloaded to the aDSP by default. When not in SINGLE_THREADED mode a call back function must be set for getting the handle or a handle must be set in the ecc_key structure for the operation to make use of multiple threads when offloading to the DSP. This is because creating new handles for new threads must be done.
+This directory is to help with building wolfSSL for use with DSP. It assumes that the Hexagon SDK has been setup on the machine and that the environment variables have been set by calling (source ~/Qualcomm/Hexagon_SDK/3.4.3/setup_sdk_env.source). Currently offloading ECC 256 verify operations to the DSP is supported. When WOLFSSL_DSP is defined ECC verify operations are offloaded to the aDSP by default. When not in SINGLE_THREADED mode a call back function must be set for getting the handle or a handle must be set in the ecc_key structure for the operation to make use of multiple threads when offloading to the DSP. This is because creating new handles for new threads must be done.
 
 
 ## Building
@@ -51,7 +51,7 @@ To use wolfSSL with a user created handle it can be done by calling wc_ecc_set_h
 #### wolfSSL_SetHandleCb
 The API wolfSSL_SetHandleCb takes a function pointer of type "int (*wolfSSL_DSP_Handle_cb)(remote_handle64 *handle, int finished void *ctx);". This callback is executed right before the operation is handed off to the DSP (finished set to 0) and right after done with the handle (finished set to 1). With ECC this would be after the ECC verify function has been called but before the information is passed on to the DSP and once again with the finished flag set after the result is returned.
 
-The callback set should return 0 on sucessfully setting the input handle. The ctx argument is for future custom context to be passed in and is currently not used.
+The callback set should return 0 on successfully setting the input handle. The ctx argument is for future custom context to be passed in and is currently not used.
 
 #### Expected Performance
 This is the expected results from running ./eccbenchmark using the -O3 flag

+ 1 - 1
IDE/Renesas/e2studio/Projects/test/src/key_data.h

@@ -25,7 +25,7 @@
 #ifdef WOLFSSL_RENESAS_TSIP
 #include "r_tsip_rx_if.h"
 
-/** user key datas */
+/** user key data */
 typedef struct key_block_data
 {
     uint8_t  encrypted_session_key[R_TSIP_AES_CBC_IV_BYTE_SIZE * 2];

+ 2 - 2
certs/renewcerts/wolfssl.cnf

@@ -39,7 +39,7 @@ crl              = $dir/certs/crl/crl.pem     # The current CRL
 private_key      = $dir/certs/ca-key.pem      # The private key
 RANDFILE         = $dir/certs/private/.rand   # private random number file
 
-x509_extensions  = usr_cert                   # The extentions to add to the cert
+x509_extensions  = usr_cert                   # The extensions to add to the cert
 
 name_opt         = ca_default                 # Subject Name options
 cert_opt         = ca_default                 # Certificate field options
@@ -75,7 +75,7 @@ default_bits            = 2048
 default_keyfile         = privkey.pem
 distinguished_name      = req_distinguished_name
 attributes              = req_attributes
-x509_extensions         = v3_ca  # The extentions to add to the self signed cert
+x509_extensions         = v3_ca  # The extensions to add to the self signed cert
 string_mask             = utf8only
 
 #default req_dist_name

+ 1 - 1
doc/README.txt

@@ -1,7 +1,7 @@
 The wolfSSL manual is available at:
 http://www.wolfssl.com/documentation/wolfSSL-Manual.pdf
 
-The wolfSSL API guide is availabe at:
+The wolfSSL API guide is available at:
 https://www.wolfssl.com/doxygen/wolfssl_API.html
 
 The wolfCrypt API guide is available at:

+ 1 - 1
doc/dox_comments/header_files/asn_public.h

@@ -1306,7 +1306,7 @@ WOLFSSL_API int wc_DerToPemEx(const byte* der, word32 derSz, byte* output,
     byte* bufSz;
     static int LoadKeyFile(byte** keyBuf, word32* keyBufSz,
     const char* keyFile,
-                    int typeKey, const char* pasword);
+                    int typeKey, const char* password);
     bufSz = wc_KeyPemToDer(loadBuf, (int)fileSz, saveBuf,
     (int)fileSz, password);

+ 1 - 1
doc/dox_comments/header_files/compress.h

@@ -44,7 +44,7 @@ WOLFSSL_API int wc_Compress(byte*, word32, const byte*, word32, word32);
     \brief This function decompresses the given compressed data using Huffman
     coding and stores the output in out.
 
-    \return Succes On successfully decompressing the input data, returns the
+    \return Success On successfully decompressing the input data, returns the
     number of bytes stored in the output buffer
     \return COMPRESS_INIT_E: Returned if there is an error initializing the
     stream for compression

+ 7 - 7
doc/dox_comments/header_files/ssl.h

@@ -4493,7 +4493,7 @@ WOLFSSL_API WOLFSSL_STACK* wolfSSL_X509_STORE_CTX_get_chain(
     is WOLFSSL_CRL_CHECK.
 
     \return SSL_SUCCESS If no errors were encountered when setting the flag.
-    \return <0 a negative vlaue will be returned upon failure.
+    \return <0 a negative value will be returned upon failure.
 
     \param str certificate store to set flag in.
     \param flag flag for behavior.
@@ -4901,7 +4901,7 @@ WOLFSSL_API void wolfSSL_CTX_set_psk_client_callback(WOLFSSL_CTX*,
     WOLFSSL* ssl;
     unsigned int cb(WOLFSSL*, const char*, char*) // Header of function*
     {
-    	// Funciton body
+    	// Function body
     }
     cb = wc_psk_client_callback;
@@ -5000,7 +5000,7 @@ WOLFSSL_API const char* wolfSSL_get_psk_identity(const WOLFSSL*);
     ret = wolfSSL_CTX_use_psk_identity_hint(ctx, hint);
     if(ret == SSL_SUCCESS){
-    	// Function was succesfull.
+    	// Function was successful.
 	return ret;
     } else {
     	// Failure case.
@@ -5187,7 +5187,7 @@ WOLFSSL_API WOLFSSL_METHOD *wolfSSLv23_server_method(void);
 
     \brief This is used to get the internal error state of the WOLFSSL structure.
 
-    \return wolfssl_error returns ssl error state, usualy a negative
+    \return wolfssl_error returns ssl error state, usually a negative
     \return BAD_FUNC_ARG if ssl is NULL.
 
     \return ssl WOLFSSL structure to get state from.
@@ -5399,7 +5399,7 @@ WOLFSSL_API const char* wolfSSL_lib_version(void);
     \brief This function returns the current library version in hexadecimal
     notation.
 
-    \return LILBWOLFSSL_VERSION_HEX returns the hexidecimal version defined in
+    \return LILBWOLFSSL_VERSION_HEX returns the hexadecimal version defined in
      wolfssl/version.h.
 
     \param none No parameters.
@@ -6448,7 +6448,7 @@ WOLFSSL_API int  wolfSSL_CTX_SetTmpDH_buffer(WOLFSSL_CTX*, const unsigned char*
     a subroutine is passed a NULL argument.
     \return SSL_BAD_FILE returned if the certificate file is unable to open or
     if the a set of checks on the file fail from wolfSSL_SetTmpDH_file_wrapper.
-    \return SSL_BAD_FILETYPE returned if teh format is not PEM or ASN.1 from
+    \return SSL_BAD_FILETYPE returned if the format is not PEM or ASN.1 from
     wolfSSL_SetTmpDH_buffer_wrapper().
     \return DH_KEY_SIZE_E returned if the DH parameter's key size is less than
     the value of the minDhKeySz member of the WOLFSSL_CTX struct.
@@ -9497,7 +9497,7 @@ WOLFSSL_API int wolfSSL_SetOCSP_OverrideURL(WOLFSSL*, const char*);
     WOLFSSL_CERT_MANAGER structure.
 
     \return SSL_SUCCESS returned if the function executes without error.
-    The ocspIOCb, ocspRespFreeCb, and ocspIOCtx memebers of the CM are set.
+    The ocspIOCb, ocspRespFreeCb, and ocspIOCtx members of the CM are set.
     \return BAD_FUNC_ARG returned if the WOLFSSL or WOLFSSL_CERT_MANAGER
     structures are NULL.
 

+ 2 - 2
doc/dox_comments/header_files/wolfio.h

@@ -10,7 +10,7 @@
     \return WOLFSSL_CBIO_ERR_ISR returned with a “Socket interrupted” message
     if the last error was SOCKET_EINTR.
     \return WOLFSSL_CBIO_ERR_WANT_READ returned with a “Connection refused”
-    messag if the last error was SOCKET_ECONNREFUSED.
+    message if the last error was SOCKET_ECONNREFUSED.
     \return WOLFSSL_CBIO_ERR_CONN_CLOSE returned with a “Connection aborted”
     message if the last error was SOCKET_ECONNABORTED.
     \return WOLFSSL_CBIO_ERR_GENERAL returned with a “General error” message
@@ -361,7 +361,7 @@ WOLFSSL_API void* wolfSSL_GetIOReadCtx( WOLFSSL* ssl);
     ...
     ioWrite = wolfSSL_GetIOWriteCtx(ssl);
     if(ioWrite == NULL){
-    	// The funciton returned NULL.
+    	// The function returned NULL.
     }
     \endcode
 

+ 1 - 1
wolfcrypt/src/port/xilinx/xil-aesgcm.c

@@ -73,7 +73,7 @@ int  wc_AesGcmSetKey_ex(Aes* aes, const byte* key, word32 len, word32 kup)
     /* XST_SUCCESS comes from Xilinx header file */
     if (XCsuDma_CfgInitialize(&(aes->dma), con, con->BaseAddress) !=
             XST_SUCCESS) {
-        WOLFSSL_MSG("Failied to initialize hardware");
+        WOLFSSL_MSG("Failed to initialize hardware");
         return MEMORY_E;
     }
 

+ 5 - 5
wolfcrypt/src/sp_dsp32.c

@@ -1737,7 +1737,7 @@ static void sp_256_proj_point_dbl_10(sp_point* r, const sp_point* p, sp_digit* t
     x = rp[p->infinity]->x;
     y = rp[p->infinity]->y;
     z = rp[p->infinity]->z;
-    /* Put point to double into result - good for infinty. */
+    /* Put point to double into result - good for infinity. */
     if (r != p) {
         for (i=0; i<10; i++) {
             r->x[i] = p->x[i];
@@ -1808,7 +1808,7 @@ static int sp_256_cmp_equal_10(const sp_digit* a, const sp_digit* b)
 /* Add two Montgomery form projective points.
  *
  * r  Result of addition.
- * p  Frist point to add.
+ * p  First point to add.
  * q  Second point to add.
  * t  Temporary ordinate data.
  */
@@ -2324,7 +2324,7 @@ static void sp_256_proj_point_dbl_n_10(sp_point* r, const sp_point* p, int n,
  * Only the first point can be the same pointer as the result point.
  *
  * r  Result of addition.
- * p  Frist point to add.
+ * p  First point to add.
  * q  Second point to add.
  * t  Temporary ordinate data.
  */
@@ -2406,7 +2406,7 @@ static void sp_256_proj_point_add_qz1_10(sp_point* r, const sp_point* p,
  * Ordinates are in Montgomery form.
  *
  * a  Point to convert.
- * t  Temprorary data.
+ * t  Temporary data.
  */
 static void sp_256_proj_to_affine_10(sp_point* a, sp_digit* t)
 {
@@ -2429,7 +2429,7 @@ static void sp_256_proj_to_affine_10(sp_point* a, sp_digit* t)
  *
  * a      The base point.
  * table  Place to store generated point data.
- * tmp    Temprorary data.
+ * tmp    Temporary data.
  * heap  Heap to use for allocation.
  */
 static int sp_256_gen_stripe_table_10(const sp_point* a,

+ 1 - 1
wolfssl/wolfcrypt/port/Renesas/renesas-tsip-crypt.h

@@ -42,7 +42,7 @@ typedef enum {
     tsip_Key_RSA1024 = 4,
     tsip_Key_RSA2048 = 5,
     tsip_Key_tls_Rsa2048 = 6,
-    UNKNOW = -1,
+    UNKNOWN = -1,
 } wolfssl_TSIP_KEY_IV;
 
 enum {

+ 1 - 1
wolfssl/wolfcrypt/settings.h

@@ -143,7 +143,7 @@
 /* Uncomment next line if building for VxWorks */
 /* #define WOLFSSL_VXWORKS */
 
-/* Uncomment next line if building for Nordic nRF5x platofrm */
+/* Uncomment next line if building for Nordic nRF5x platform */
 /* #define WOLFSSL_NRF5x */
 
 /* Uncomment next line to enable deprecated less secure static DH suites */