Skip to content

Commit

Permalink
Merge pull request #6506 from DimitriPapadopoulos/codespell
Browse files Browse the repository at this point in the history
Fix typos found by codespell
  • Loading branch information
JacobBarthelmeh committed Jul 24, 2023
2 parents 1812d32 + 50752f5 commit 1285ae7
Show file tree
Hide file tree
Showing 93 changed files with 253 additions and 253 deletions.
2 changes: 1 addition & 1 deletion IDE/AURIX/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ extern unsigned int my_rng_seed_gen(void);
/* use heap allocation for ECC points */
#define ALT_ECC_SIZE
/* wolfSSL will compute the FP_MAX_BITS_ECC, but it can be overriden */
/* wolfSSL will compute the FP_MAX_BITS_ECC, but it can be overridden */
//#define FP_MAX_BITS_ECC (256 * 2)
#endif

Expand Down
2 changes: 1 addition & 1 deletion IDE/Espressif/ESP-IDF/setup_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ dir %WOLFSSL_ESPIDFDIR%\*.xyzzy 2> nul | findstr \

echo;
echo Equivalalent source directory paths:
:: show the path of the equivalent %VALUE% (search for files that don't exist, supress error, and look for string with "\")
:: show the path of the equivalent %VALUE% (search for files that don't exist, suppress error, and look for string with "\")
dir %BASEDIR%\*.xyzzy 2> nul | findstr \
dir %WOLFSSLLIB_TRG_DIR%\*.xyzzy 2> nul | findstr \
dir %WOLFSSLEXP_TRG_DIR%\*.xyzzy 2> nul | findstr \
Expand Down
2 changes: 1 addition & 1 deletion IDE/GCC-ARM/Header/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ extern "C" {
#else
#undef ALT_ECC_SIZE
#define ALT_ECC_SIZE
/* wolfSSL will compute the FP_MAX_BITS_ECC, but it can be overriden */
/* wolfSSL will compute the FP_MAX_BITS_ECC, but it can be overridden */
//#undef FP_MAX_BITS_ECC
//#define FP_MAX_BITS_ECC (256 * 2)
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
#undef ALT_ECC_SIZE
#define ALT_ECC_SIZE
/* wolfSSL will compute the FP_MAX_BITS_ECC, but it can be overriden */
/* wolfSSL will compute the FP_MAX_BITS_ECC, but it can be overridden */
/* MAX ECC BITS = ROUND8(MAX ECC) * 2 */
//#undef FP_MAX_BITS_ECC
//#define FP_MAX_BITS_ECC (528 * 2)
Expand Down
4 changes: 2 additions & 2 deletions IDE/IAR-MSP430/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ Bob init
Successfully generated a common secret
Alices' Secret: 85f3c7f599620c768e6dbb77dc2f8f764254cc1821aeb0a30503632dbc9bdb54
Bobs' Secret: 85f3c7f599620c768e6dbb77dc2f8f764254cc1821aeb0a30503632dbc9bdb54
ChaCha20/Poly1305 Encryption Start, 1000 itterations, 1024 bytes
ChaCha20/Poly1305 Encryption Start, 1000 iterations, 1024 bytes
............................................
End 44 seconds
ChaCha20/Poly1305 Decryption Start, 1000 itterations
ChaCha20/Poly1305 Decryption Start, 1000 iterations
............................................
End 44 seconds
end
Expand Down
6 changes: 3 additions & 3 deletions IDE/IAR-MSP430/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <msp430f5659.h>

/* Without __root on some of the functions, IAR's "Discard Unused Publics"
will optimze out some of the functions
will optimize out some of the functions
*/
#if defined(__IAR_SYSTEMS_ICC__)
#define IAR_KEEP __root
Expand Down Expand Up @@ -304,7 +304,7 @@ int main(void)
wc_FreeRng(&rng);

printf(
"ChaCha20/Poly1305 Encryption Start, 1000 itterations, %d bytes\r\n",
"ChaCha20/Poly1305 Encryption Start, 1000 iterations, %d bytes\r\n",
(int)strlen((const char*)plaintext));
start = seconds;
for (int i=0; i <= 1000; i++) {
Expand All @@ -319,7 +319,7 @@ int main(void)
printf("\r\nEnd %d seconds\r\n", seconds - start);

start = seconds;
printf("ChaCha20/Poly1305 Decryption Start, 1000 itterations\r\n");
printf("ChaCha20/Poly1305 Decryption Start, 1000 iterations\r\n");
start = seconds;
for (int i=0; i <= 1000; i++) {
ret = wc_ChaCha20Poly1305_Decrypt(key, iv, aad, sizeof(aad),
Expand Down
2 changes: 1 addition & 1 deletion IDE/M68K/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ clean: rmo
rm -f $(OUTPUT)/$(NAME).a

help:
@echo "all : exectue compile, link, rmo"
@echo "all : execute compile, link, rmo"
@echo "compile : create .o files"
@echo "link : create .a library from .o files"
@echo "rmo : remove all .o files"
Expand Down
10 changes: 5 additions & 5 deletions IDE/MCUEXPRESSO/RT1170/fsl_caam_c.patch
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
+ /* initialize descriptor from template */
+ (void)caam_memcpy(descriptor, templateKeyPairECC, sizeof(templateKeyPairECC));
+
+ /* add descriptor lenght in bytes to HEADER descriptor command */
+ /* add descriptor length in bytes to HEADER descriptor command */
+ DESC_HEADER_ADD_DESCLEN(descriptor[0], descriptorSize);
+
+ DESC_SET_ADDR(descriptor[1], (CAAM_ECDSA_KEYGEN_PD | keyType));
Expand Down Expand Up @@ -200,7 +200,7 @@
+ /* initialize descriptor from template */
+ (void)caam_memcpy(descriptor, templateSignECC, sizeof(templateSignECC));
+
+ /* add descriptor lenght in bytes to HEADER descriptor command */
+ /* add descriptor length in bytes to HEADER descriptor command */
+ DESC_HEADER_ADD_DESCLEN(descriptor[0], descriptorSize);
+
+ DESC_SET_ADDR(descriptor[1], (CAAM_ECDSA_PD | keyType));
Expand Down Expand Up @@ -275,7 +275,7 @@
+ /* initialize descriptor from template */
+ (void)caam_memcpy(descriptor, templateVerifyECC, sizeof(templateVerifyECC));
+
+ /* add descriptor lenght in bytes to HEADER descriptor command */
+ /* add descriptor length in bytes to HEADER descriptor command */
+ DESC_HEADER_ADD_DESCLEN(descriptor[0], descriptorSize);
+
+ DESC_SET_ADDR(descriptor[1], (CAAM_ECDSA_PD | keyType));
Expand Down Expand Up @@ -344,7 +344,7 @@
+ /* initialize descriptor from template */
+ (void)caam_memcpy(descriptor, templateAgreeECC, sizeof(templateAgreeECC));
+
+ /* add descriptor lenght in bytes to HEADER descriptor command */
+ /* add descriptor length in bytes to HEADER descriptor command */
+ DESC_HEADER_ADD_DESCLEN(descriptor[0], descriptorSize);
+
+ DESC_SET_ADDR(descriptor[1], (CAAM_ECDSA_KEYGEN_PD | keyType));
Expand Down Expand Up @@ -445,7 +445,7 @@
+ /* initialize descriptor from template */
+ (void)caam_memcpy(descriptor, templateBlob, sizeof(templateBlob));
+
+ /* add descriptor lenght in bytes to HEADER descriptor command */
+ /* add descriptor length in bytes to HEADER descriptor command */
+ DESC_HEADER_ADD_DESCLEN(descriptor[0], descriptorSize);
+ descriptor[1] |= keyModSz;
+ DESC_SET_ADDR(descriptor[2], keyMod);
Expand Down
2 changes: 1 addition & 1 deletion IDE/MCUEXPRESSO/benchmark/source/run_benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static void doBenchmark(void* params)
wolfCrypt_Cleanup();
}
else {
PRINTF("Failied to initialize wolfCrypt\r\n");
PRINTF("Failed to initialize wolfCrypt\r\n");
}
}

Expand Down
2 changes: 1 addition & 1 deletion IDE/MCUEXPRESSO/wolfcrypt_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ int main(void)
wolfCrypt_Cleanup();
}
else {
PRINTF("Failied to initialize wolfCrypt\r\n");
PRINTF("Failed to initialize wolfCrypt\r\n");
}

#if defined(FREESCALE_KSDK_2_0_TRNG) && defined(FREESCALE_RTC)
Expand Down
6 changes: 3 additions & 3 deletions IDE/MDK-ARM/MDK-ARM/wolfSSL/shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ static struct {
"", NULL
} ;

enum jobtype { FORGROUND, BACKGROUND } ;
enum jobtype { FOREGROUND, BACKGROUND } ;

#define IF_DELIMITER(ch) ((ch) == ' ' || (ch) == '\n')

Expand All @@ -326,7 +326,7 @@ static int getline(char * line, int sz, func_args *args, int*bf_flg)
(*bf_flg) = BACKGROUND ;
line[strlen(line)-2] = '\n' ;
} else {
(*bf_flg) = FORGROUND ;
(*bf_flg) = FOREGROUND ;
}
args->argc = 0 ;
for(i=0; i<sz; i++) {
Expand Down Expand Up @@ -542,7 +542,7 @@ void shell_main(void) {
for(i=0; commandTable[i].func != NULL; i++) {
if(strcmp(commandTable[i].command, args.argv[0]) == 0) {
args.argv[0] = (char *) commandTable[i].func ;
if(bf_flg == FORGROUND) {
if(bf_flg == FOREGROUND) {
#ifdef HAVE_KEIL_RTX
wc_UnLockMutex((wolfSSL_Mutex *)&command_mutex) ;
os_tsk_create_user_ex( (void(*)(void *))&command_invoke, 7,
Expand Down
6 changes: 3 additions & 3 deletions IDE/MDK5-ARM/Projects/wolfSSL-Full/shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ static struct {
"", NULL
} ;

enum jobtype { FORGROUND, BACKGROUND } ;
enum jobtype { FOREGROUND, BACKGROUND } ;

#define IF_DELIMITER(ch) ((ch) == ' ' || (ch) == '\n')

Expand Down Expand Up @@ -368,7 +368,7 @@ static int getline(char * line, int sz, func_args *args, int*bf_flg)
(*bf_flg) = BACKGROUND ;
line[strlen(line)-2] = '\n' ;
} else {
(*bf_flg) = FORGROUND ;
(*bf_flg) = FOREGROUND ;
}
args->argc = 0 ;
for(i=0; i<sz; i++) {
Expand Down Expand Up @@ -633,7 +633,7 @@ void shell_main(void *arg) {
for(i=0; commandTable[i].func != NULL; i++) {
if(strcmp(commandTable[i].command, args.argv[0]) == 0) {
args.argv[0] = (char *) commandTable[i].func ;
if(bf_flg == FORGROUND) {
if(bf_flg == FOREGROUND) {
#if defined(HAVE_KEIL_RTX) && !defined(WOLFSSL_CMSIS_RTOS)
wc_UnLockMutex((wolfSSL_Mutex *)&command_mutex) ;
os_tsk_create_user_ex( (void(*)(void *))&command_invoke, 7,
Expand Down
2 changes: 1 addition & 1 deletion IDE/NETOS/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ extern "C" {
#else
#undef ALT_ECC_SIZE
#define ALT_ECC_SIZE
/* wolfSSL will compute the FP_MAX_BITS_ECC, but it can be overriden */
/* wolfSSL will compute the FP_MAX_BITS_ECC, but it can be overridden */
//#undef FP_MAX_BITS_ECC
//#define FP_MAX_BITS_ECC (256 * 2)
#endif
Expand Down
2 changes: 1 addition & 1 deletion IDE/QNX/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ source ~/qnx700/qnxsdp-env.sh
make
```

Once the wolfSSL library has been built cd to IDE/QNX/CAAM-DRIVER and run "make". This will produce the wolfCrypt resource manager. It should be started on the device with root permisions. Once wolfCrypt is running on the device with root permisions then any user with access to open a connection to /dev/wolfCrypt can make use of the driver.
Once the wolfSSL library has been built cd to IDE/QNX/CAAM-DRIVER and run "make". This will produce the wolfCrypt resource manager. It should be started on the device with root permissions. Once wolfCrypt is running on the device with root permissions then any user with access to open a connection to /dev/wolfCrypt can make use of the driver.

### Momentics
To build in momentics IDE:
Expand Down
4 changes: 2 additions & 2 deletions IDE/Renesas/e2studio/DK-S7G2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- Generate the changes by clicking on "Generate Project Content"
- Exclude src/wolfcrypt/port and all src/wolfcrypt/*.S and src/wolfcrypt/*.asm files from the build
- Exclude src/wolfcrypt/evp.c, src/wolfcrypt/misc.c and src/wolfssl/bio.c
- Set the Preprocessor define in wolfssl proejct to have WOLFSSL_USER_SETTINGS. Right click on wolfssl project "Properties -> C/C++ Build -> GNU ARM Cross C Compiler -> Preprocessor" add WOLFSSL_USER_SETTINGS under "Defined symbols"
- Set the Preprocessor define in wolfssl project to have WOLFSSL_USER_SETTINGS. Right click on wolfssl project "Properties -> C/C++ Build -> GNU ARM Cross C Compiler -> Preprocessor" add WOLFSSL_USER_SETTINGS under "Defined symbols"
- Set include to wolfssl directory. Right click on project "Properties -> C/C++Build -> GNU ARM Cross Compiler -> Includes". Add "${ProjDirPath}/../../../../.." and "${ProjDirPath}/../"
- Build wolfssl by right clicking on wolfssl project and selecting "Build Project"

Expand All @@ -29,7 +29,7 @@
- Copy in the .cproject, .project and source file from the template desired i.e. wolfssl-X.X.X/IDE/Renesas/e2studio/DK-S7G2/wolfcrypttest-template/
- Right click on the created project and select "Build Project"

The example_server loops looking to accept connections and closes immediatly after a successful connection was made.
The example_server loops looking to accept connections and closes immediately after a successful connection was made.

The benchmark example tries to do a TCP connection to SERVER_IP on port 11112 and a TLS connection to SERVER_IP on port 11111 then does wolfCrypt benchmark collection.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ extern void initialise_monitor_handles(void);
#define TLS_PORT 11111
#define TCP_PORT 11112

static double miliseconds = 0;
static double milliseconds = 0;
void timer_callback(timer_callback_args_t * args)
{
miliseconds++;
milliseconds++;
(void)args;
}

Expand Down Expand Up @@ -127,7 +127,7 @@ static void benchmark_TLS(int version, char* suites, int group)

printf("Trying to connect to 0x%lX on port %d\n", TEST_IP, TEST_PORT);

miliseconds = 0;
milliseconds = 0;
g_timer0.p_api->open(g_timer0.p_ctrl, g_timer0.p_cfg);
g_timer0.p_api->start(g_timer0.p_ctrl);

Expand Down Expand Up @@ -195,7 +195,7 @@ static void benchmark_TLS(int version, char* suites, int group)
g_timer0.p_api->close(g_timer0.p_ctrl);

printf("%d TLS connections took %f seconds and %f tx_time ticks\n",
CONNECTION_TIMES, (miliseconds / 10), start);
CONNECTION_TIMES, (milliseconds / 10), start);
wolfSSL_CTX_free(ctx);
}

Expand Down
2 changes: 1 addition & 1 deletion IDE/Renesas/e2studio/Projects/tools/rsa_pss_sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ openssl dgst -sha256 -sign $1 -sigopt $SIGOPT -sigopt $SIGOPT2 -out $3.sign $3
echo verify by private key
openssl dgst -sha256 -prverify $1 -sigopt $SIGOPT -sigopt $SIGOPT2 -signature $3.sign $3

echo verifiy by public key
echo verify by public key
openssl dgst -sha256 -verify $2 -sigopt $SIGOPT -sigopt $SIGOPT2 -signature $3.sign $3

2 changes: 1 addition & 1 deletion IDE/Renesas/e2studio/RA6M3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ The following steps explain how to generate the missing files and where to place
+ Build wolfSSL_RA6M3.

5.) Copy files from `dummy_app` into each executable projects\
+ Select and Copy the followng folder inside dummy_app\
+ Select and Copy the following folder inside dummy_app\

`script/`

Expand Down
2 changes: 1 addition & 1 deletion IDE/Renesas/e2studio/RA6M3/README_APRA6M_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ The following steps explain how to generate the missing files and where to place
6.) Copy files from `dummy_app` into `./IDE/Renesas/e2studio/RA6M3/common/ra6m3g/`
**NOTE:** This may need to be done outside of the e2studio environment (e.g. File Explorer).

+ Select and Copy the followng folder inside dummy_app
+ Select and Copy the following folder inside dummy_app

`src/`
`script/`
Expand Down
6 changes: 3 additions & 3 deletions IDE/Renesas/e2studio/RA6M4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ The wolfssl Project Summary is listed below and is relevant for every project.
+ Enter `dummy_application` as the project name. Click Next.
+ Under `RA library project`, select `wolfSSL_RA6M4`.
+ Click Finish.
+ Copy the followng folder and file at `dummy_application` to `test_RA6M4`\
+ Copy the following folder and file at `dummy_application` to `test_RA6M4`\
script/\
src/sce_tst_thread_entry.c

Expand Down Expand Up @@ -136,7 +136,7 @@ The wolfssl Project Summary is listed below and is relevant for every project.
you can specify "RTT control block" to 0x20020000 0x10000 by Search Range

## Run Client
1.) Enable TLS_CLIENT definition in wolfssl_demo.h of test_RA6M4 projet
1.) Enable TLS_CLIENT definition in wolfssl_demo.h of test_RA6M4 project

2.) Client IP address and Server IP address

Expand Down Expand Up @@ -233,7 +233,7 @@ You will see the following message on J-LinK RTT Viewer when using ECDSA sign an


### Run Multi Client Session example
1.) Enable TLS_CLIENT and TLS_MULTITHREAD_TEST definition in wolfssl_demo.h of test_RA6M4 projet
1.) Enable TLS_CLIENT and TLS_MULTITHREAD_TEST definition in wolfssl_demo.h of test_RA6M4 project

2.) Follow [Run Client](#run-client) instruction

Expand Down
4 changes: 2 additions & 2 deletions IDE/Renesas/e2studio/RA6M4/test/key_data/key_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "r_sce.h"

/** Firmware update data and user key datas */
/** Firmware update data and user key data */
typedef struct user_key_block_data
{
/* Provisioning key wapped by Renesas DLM */
Expand All @@ -17,4 +17,4 @@ typedef struct user_key_block_data
extern const unsigned char ca_cert_der_sign[];
extern const unsigned char ca_ecc_cert_der_sign[];

#endif /* __KEY_DATA_H__ */
#endif /* __KEY_DATA_H__ */
2 changes: 1 addition & 1 deletion IDE/Renesas/e2studio/RX65N/GR-ROSE/common/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
* -- "NO_ASN_TIME" macro is to avoid certificate expiration validation --
*
* Note. In your actual products, do not forget to comment-out
* "NO_ASN_TIME" macro. And prepare time function to get calender time,
* "NO_ASN_TIME" macro. And prepare time function to get calendar time,
* otherwise, certificate expiration validation will not work.
*/
/*#define NO_ASN_TIME*/
Expand Down
4 changes: 2 additions & 2 deletions IDE/Renesas/e2studio/RX65N/GR-ROSE/test/src/wolf_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ void wolfSSL_TLS_client_init(const char* cipherlist)

if ((client_ctx = wolfSSL_CTX_new_ex(wolfSSLv23_client_method_ex(heapHint),
heapHint)) == NULL) {
printf("ERROR: faild to create WOLFSSL_CTX\n");
printf("ERROR: failed to create WOLFSSL_CTX\n");
return;
}

if ((wolfSSL_CTX_load_static_memory(&client_ctx, NULL, heapBufIO,
sizeof(heapBufIO), WOLFMEM_IO_POOL, 10)) != WOLFSSL_SUCCESS) {
printf("ERROR: faild to set static memory for IO\n");
printf("ERROR: failed to set static memory for IO\n");
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
* -- "NO_ASN_TIME" macro is to avoid certificate expiration validation --
*
* Note. In your actual products, do not forget to comment-out
* "NO_ASN_TIME" macro. And prepare time function to get calender time,
* "NO_ASN_TIME" macro. And prepare time function to get calendar time,
* otherwise, certificate expiration validation will not work.
*/
/*#define NO_ASN_TIME*/
Expand Down
Loading

0 comments on commit 1285ae7

Please sign in to comment.