mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
More spelling fixes.
This commit is contained in:
@@ -733,7 +733,7 @@ size_t wolfSSL_BIO_ctrl_pending(WOLFSSL_BIO *bio)
|
|||||||
if (bio->type == WOLFSSL_BIO_BIO && bio->pair != NULL) {
|
if (bio->type == WOLFSSL_BIO_BIO && bio->pair != NULL) {
|
||||||
WOLFSSL_BIO* pair = bio->pair;
|
WOLFSSL_BIO* pair = bio->pair;
|
||||||
if (pair->wrIdx > 0 && pair->wrIdx <= pair->rdIdx) {
|
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 */
|
* overwritten */
|
||||||
return pair->wrSz - pair->rdIdx + pair->wrIdx;
|
return pair->wrSz - pair->rdIdx + pair->wrIdx;
|
||||||
}
|
}
|
||||||
@@ -1136,7 +1136,7 @@ int wolfSSL_BIO_seek(WOLFSSL_BIO *bio, int ofs)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* offset ofs from begining of file */
|
/* offset ofs from beginning of file */
|
||||||
if (bio->type == WOLFSSL_BIO_FILE &&
|
if (bio->type == WOLFSSL_BIO_FILE &&
|
||||||
XFSEEK(bio->file, ofs, SEEK_SET) < 0) {
|
XFSEEK(bio->file, ofs, SEEK_SET) < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
|
@@ -19993,7 +19993,7 @@ int SendClientKeyExchange(WOLFSSL* ssl)
|
|||||||
/* length is used for public key size */
|
/* length is used for public key size */
|
||||||
args->length = MAX_ENCRYPT_SZ;
|
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. */
|
of buffer for size of shared key. */
|
||||||
ssl->arrays->preMasterSz = ENCRYPT_LEN - OPAQUE16_LEN;
|
ssl->arrays->preMasterSz = ENCRYPT_LEN - OPAQUE16_LEN;
|
||||||
|
|
||||||
|
@@ -79,7 +79,7 @@ typedef struct ContentInfo {
|
|||||||
struct ContentInfo* next;
|
struct ContentInfo* next;
|
||||||
word32 encC; /* encryptedContent */
|
word32 encC; /* encryptedContent */
|
||||||
word32 dataSz;
|
word32 dataSz;
|
||||||
int type; /* DATA / encrypted / envelpoed */
|
int type; /* DATA / encrypted / enveloped */
|
||||||
} ContentInfo;
|
} ContentInfo;
|
||||||
|
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ typedef struct MacData {
|
|||||||
word32 oid;
|
word32 oid;
|
||||||
word32 digestSz;
|
word32 digestSz;
|
||||||
word32 saltSz;
|
word32 saltSz;
|
||||||
int itt; /* number of itterations when creating HMAC key */
|
int itt; /* number of iterations when creating HMAC key */
|
||||||
} MacData;
|
} MacData;
|
||||||
|
|
||||||
|
|
||||||
@@ -256,7 +256,7 @@ static int GetSafeContent(WC_PKCS12* pkcs12, const byte* input,
|
|||||||
*idx = localIdx;
|
*idx = localIdx;
|
||||||
|
|
||||||
/* an instance of AuthenticatedSafe is created from
|
/* 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
|
* through the ContentInfo's and add them to our
|
||||||
* AuthenticatedSafe struct */
|
* AuthenticatedSafe struct */
|
||||||
localIdx = 0;
|
localIdx = 0;
|
||||||
@@ -449,7 +449,7 @@ static int GetSignData(WC_PKCS12* pkcs12, const byte* mem, word32* idx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WOLFSSL_DEBUG_PKCS12
|
#ifdef WOLFSSL_DEBUG_PKCS12
|
||||||
printf("\t\tITTERATIONS : %d\n", mac->itt);
|
printf("\t\tITERATIONS : %d\n", mac->itt);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
*idx = curIdx;
|
*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
|
/* 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.
|
* parsing or decoding.
|
||||||
* der : pointer to der buffer holding PKCS12
|
* der : pointer to der buffer holding PKCS12
|
||||||
* derSz : size of der buffer
|
* 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);
|
XFREE(tmp, heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||||
totalSz += length;
|
totalSz += length;
|
||||||
|
|
||||||
/* set begining sequence */
|
/* set beginning sequence */
|
||||||
tmpSz = SetSequence(totalSz, out);
|
tmpSz = SetSequence(totalSz, out);
|
||||||
XMEMMOVE(out + tmpSz, out + MAX_SEQ_SZ, totalSz);
|
XMEMMOVE(out + tmpSz, out + MAX_SEQ_SZ, totalSz);
|
||||||
|
|
||||||
|
@@ -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 {v24.4s-v27.4s}, [%[k]], #64 \n"
|
||||||
"LD1 {v28.4s-v31.4s}, [%[k]], #64 \n"
|
"LD1 {v28.4s-v31.4s}, [%[k]], #64 \n"
|
||||||
|
|
||||||
/* begining of SHA256 block operation */
|
/* beginning of SHA256 block operation */
|
||||||
"1:\n"
|
"1:\n"
|
||||||
/* Round 1 */
|
/* Round 1 */
|
||||||
"MOV v4.16b, v0.16b \n"
|
"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 q14, q12 \n" /* store digest for add at the end */
|
||||||
"VMOV.32 q15, q13 \n"
|
"VMOV.32 q15, q13 \n"
|
||||||
|
|
||||||
/* begining of SHA256 block operation */
|
/* beginning of SHA256 block operation */
|
||||||
"1:\n"
|
"1:\n"
|
||||||
|
|
||||||
/* Round 1 */
|
/* 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 q14, q12 \n" /* store digest for add at the end */
|
||||||
"VMOV.32 q15, q13 \n"
|
"VMOV.32 q15, q13 \n"
|
||||||
|
|
||||||
/* begining of SHA256 block operation */
|
/* beginning of SHA256 block operation */
|
||||||
/* Round 1 */
|
/* Round 1 */
|
||||||
"VLD1.32 {q5}, [%[k]]! \n"
|
"VLD1.32 {q5}, [%[k]]! \n"
|
||||||
"VMOV.32 q4, q0 \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 q14, q12 \n" /* store digest for add at the end */
|
||||||
"VMOV.32 q15, q13 \n"
|
"VMOV.32 q15, q13 \n"
|
||||||
|
|
||||||
/* begining of SHA256 block operation */
|
/* beginning of SHA256 block operation */
|
||||||
/* Round 1 */
|
/* Round 1 */
|
||||||
"VLD1.32 {q5}, [%[k]]! \n"
|
"VLD1.32 {q5}, [%[k]]! \n"
|
||||||
"VMOV.32 q4, q0 \n"
|
"VMOV.32 q4, q0 \n"
|
||||||
|
Reference in New Issue
Block a user