diff --git a/src/bio.c b/src/bio.c index 91c5c809c..9d4c0349a 100644 --- a/src/bio.c +++ b/src/bio.c @@ -733,7 +733,7 @@ size_t wolfSSL_BIO_ctrl_pending(WOLFSSL_BIO *bio) if (bio->type == WOLFSSL_BIO_BIO && bio->pair != NULL) { WOLFSSL_BIO* pair = bio->pair; if (pair->wrIdx > 0 && pair->wrIdx <= pair->rdIdx) { - /* in wrap around state where begining of buffer is being + /* in wrap around state where beginning of buffer is being * overwritten */ return pair->wrSz - pair->rdIdx + pair->wrIdx; } @@ -1136,7 +1136,7 @@ int wolfSSL_BIO_seek(WOLFSSL_BIO *bio, int ofs) return -1; } - /* offset ofs from begining of file */ + /* offset ofs from beginning of file */ if (bio->type == WOLFSSL_BIO_FILE && XFSEEK(bio->file, ofs, SEEK_SET) < 0) { return -1; diff --git a/src/internal.c b/src/internal.c index 077a56bb7..4e03faec8 100644 --- a/src/internal.c +++ b/src/internal.c @@ -19993,7 +19993,7 @@ int SendClientKeyExchange(WOLFSSL* ssl) /* length is used for public key size */ args->length = MAX_ENCRYPT_SZ; - /* Create shared ECC key leaving room at the begining + /* Create shared ECC key leaving room at the beginning of buffer for size of shared key. */ ssl->arrays->preMasterSz = ENCRYPT_LEN - OPAQUE16_LEN; diff --git a/wolfcrypt/src/pkcs12.c b/wolfcrypt/src/pkcs12.c index ee3326c12..f974ebec1 100644 --- a/wolfcrypt/src/pkcs12.c +++ b/wolfcrypt/src/pkcs12.c @@ -79,7 +79,7 @@ typedef struct ContentInfo { struct ContentInfo* next; word32 encC; /* encryptedContent */ word32 dataSz; - int type; /* DATA / encrypted / envelpoed */ + int type; /* DATA / encrypted / enveloped */ } ContentInfo; @@ -98,7 +98,7 @@ typedef struct MacData { word32 oid; word32 digestSz; word32 saltSz; - int itt; /* number of itterations when creating HMAC key */ + int itt; /* number of iterations when creating HMAC key */ } MacData; @@ -256,7 +256,7 @@ static int GetSafeContent(WC_PKCS12* pkcs12, const byte* input, *idx = localIdx; /* an instance of AuthenticatedSafe is created from - * ContentInfo's strung together in a SEQUENCE. Here we itterate + * ContentInfo's strung together in a SEQUENCE. Here we iterate * through the ContentInfo's and add them to our * AuthenticatedSafe struct */ localIdx = 0; @@ -449,7 +449,7 @@ static int GetSignData(WC_PKCS12* pkcs12, const byte* mem, word32* idx, } #ifdef WOLFSSL_DEBUG_PKCS12 - printf("\t\tITTERATIONS : %d\n", mac->itt); + printf("\t\tITERATIONS : %d\n", mac->itt); #endif *idx = curIdx; @@ -592,7 +592,7 @@ static int wc_PKCS12_verify(WC_PKCS12* pkcs12, byte* data, word32 dataSz, /* Convert DER format stored in der buffer to WC_PKCS12 struct - * Puts the raw contents of Content Info into structure without completly + * Puts the raw contents of Content Info into structure without completely * parsing or decoding. * der : pointer to der buffer holding PKCS12 * derSz : size of der buffer @@ -1307,7 +1307,7 @@ static int wc_PKCS12_create_key_bag(WC_PKCS12* pkcs12, WC_RNG* rng, XFREE(tmp, heap, DYNAMIC_TYPE_TMP_BUFFER); totalSz += length; - /* set begining sequence */ + /* set beginning sequence */ tmpSz = SetSequence(totalSz, out); XMEMMOVE(out + tmpSz, out + MAX_SEQ_SZ, totalSz); diff --git a/wolfcrypt/src/port/arm/armv8-sha256.c b/wolfcrypt/src/port/arm/armv8-sha256.c index ea709bf32..bfdae750f 100644 --- a/wolfcrypt/src/port/arm/armv8-sha256.c +++ b/wolfcrypt/src/port/arm/armv8-sha256.c @@ -135,7 +135,7 @@ static WC_INLINE int Sha256Update(wc_Sha256* sha256, const byte* data, word32 le "LD1 {v24.4s-v27.4s}, [%[k]], #64 \n" "LD1 {v28.4s-v31.4s}, [%[k]], #64 \n" - /* begining of SHA256 block operation */ + /* beginning of SHA256 block operation */ "1:\n" /* Round 1 */ "MOV v4.16b, v0.16b \n" @@ -694,7 +694,7 @@ static WC_INLINE int Sha256Update(wc_Sha256* sha256, const byte* data, word32 le "VMOV.32 q14, q12 \n" /* store digest for add at the end */ "VMOV.32 q15, q13 \n" - /* begining of SHA256 block operation */ + /* beginning of SHA256 block operation */ "1:\n" /* Round 1 */ @@ -916,7 +916,7 @@ static WC_INLINE int Sha256Final(wc_Sha256* sha256, byte* hash) "VMOV.32 q14, q12 \n" /* store digest for add at the end */ "VMOV.32 q15, q13 \n" - /* begining of SHA256 block operation */ + /* beginning of SHA256 block operation */ /* Round 1 */ "VLD1.32 {q5}, [%[k]]! \n" "VMOV.32 q4, q0 \n" @@ -1116,7 +1116,7 @@ static WC_INLINE int Sha256Final(wc_Sha256* sha256, byte* hash) "VMOV.32 q14, q12 \n" /* store digest for add at the end */ "VMOV.32 q15, q13 \n" - /* begining of SHA256 block operation */ + /* beginning of SHA256 block operation */ /* Round 1 */ "VLD1.32 {q5}, [%[k]]! \n" "VMOV.32 q4, q0 \n"