Skip to content

Commit d10c025

Browse files
authored
Typo fixes (#588)
Signed-off-by: Yu Ding dingelish@gmail.com
1 parent aededec commit d10c025

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

SampleCode/LocalAttestation/EnclaveInitiator/datatypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ typedef uint8_t cmac_128[MAC_SIZE];
7575
//Format of the AES-GCM message being exchanged between the source and the destination enclaves
7676
typedef struct _secure_message_t
7777
{
78-
uint32_t session_id; //Session ID identifyting the session to which the message belongs
79-
sgx_aes_gcm_data_t message_aes_gcm_data;
78+
uint32_t session_id; //Session ID identifying the session to which the message belongs
79+
sgx_aes_gcm_data_t message_aes_gcm_data;
8080
}secure_message_t;
8181

8282
//Format of the input function parameter structure

SampleCode/LocalAttestation/EnclaveResponder/EnclaveMessageExchange.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ ATTESTATION_STATUS generate_session_id(uint32_t *session_id)
418418
{
419419
return INVALID_PARAMETER_ERROR;
420420
}
421-
//if the session structure is untintialized, set that as the next session ID
421+
//if the session structure is uninitialized, set that as the next session ID
422422
for (int i = 0; i < MAX_SESSION_COUNT; i++)
423423
{
424424
if (g_session_id_tracker[i] == NULL)

SampleCode/LocalAttestation/EnclaveResponder/datatypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ typedef uint8_t cmac_128[MAC_SIZE];
7575
//Format of the AES-GCM message being exchanged between the source and the destination enclaves
7676
typedef struct _secure_message_t
7777
{
78-
uint32_t session_id; //Session ID identifyting the session to which the message belongs
79-
sgx_aes_gcm_data_t message_aes_gcm_data;
78+
uint32_t session_id; //Session ID identifying the session to which the message belongs
79+
sgx_aes_gcm_data_t message_aes_gcm_data;
8080
}secure_message_t;
8181

8282
//Format of the input function parameter structure

SampleCode/LocalAttestation/README.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---------------------------
2-
The project aims to demo SGX local attesation flow.
2+
The project aims to demo SGX local attestation flow.
33

44
------------------------------------
55
How to Build the Sample Code
@@ -29,9 +29,9 @@ When build is successful, you can find executable binaries in "bin" sub-folder.
2929
How to Execute the Sample Code
3030
------------------------------------
3131
1. Install SGX driver and PSW for Linux* OS
32-
2. If you want to try local attesation flow from two process, you can goto "bin" sub-folder
32+
2. If you want to try local attestation flow from two process, you can goto "bin" sub-folder
3333
a. run "./appresponder".
3434
It would launch a process to act as local attestation responder.
3535
b. run "./appinitiator"
3636
It would launch a process to act as local attestation initator.
37-
3. If you want to try local attesation flow from one process, you can goto "bin" sub-folder and run "./app"
37+
3. If you want to try local attestation flow from one process, you can goto "bin" sub-folder and run "./app"

SampleCode/RemoteAttestation/service_provider/ias_ra.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ int ias_verify_attestation_evidence(
147147
0, GID_SIZE);
148148

149149
// @TODO: Product signing algorithm still TBD. May be RSA2048 signing.
150-
// Generate the Service providers ECCDH key pair.
150+
// Generate the Service providers ECDH key pair.
151151
do {
152152
ret = sample_ecc256_open_context(&ecc_state);
153153
if (SAMPLE_SUCCESS != ret) {

SampleCode/RemoteAttestation/service_provider/service_provider.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,14 +319,14 @@ int sp_ra_proc_msg1_req(const sample_ra_msg1_t *p_msg1,
319319
{
320320
// Get the sig_rl from attestation server using GID.
321321
// GID is Base-16 encoded of EPID GID in little-endian format.
322-
// In the product, the SP and attesation server uses an established channel for
322+
// In the product, the SP and attestation server uses an established channel for
323323
// communication.
324324
uint8_t* sig_rl;
325325
uint32_t sig_rl_size = 0;
326326

327327
// The product interface uses a REST based message to get the SigRL.
328-
//! Refer to the attesation server API for more information on how to communicate to
329-
//! the real attesation server.
328+
//! Refer to the attestation server API for more information on how to communicate to
329+
//! the real attestation server.
330330
ret = g_sp_extended_epid_group_id->get_sigrl(p_msg1->gid, &sig_rl_size, &sig_rl);
331331
if(0 != ret)
332332
{
@@ -344,7 +344,7 @@ int sp_ra_proc_msg1_req(const sample_ra_msg1_t *p_msg1,
344344
break;
345345
}
346346

347-
// Generate the Service providers ECCDH key pair.
347+
// Generate the Service providers ECDH key pair.
348348
sample_ret = sample_ecc256_open_context(&ecc_state);
349349
if(SAMPLE_SUCCESS != sample_ret)
350350
{
@@ -365,7 +365,7 @@ int sp_ra_proc_msg1_req(const sample_ra_msg1_t *p_msg1,
365365
break;
366366
}
367367

368-
// Need to save the SP ECCDH key pair to local storage.
368+
// Need to save the SP ECDH key pair to local storage.
369369
if(memcpy_s(&g_sp_db.b, sizeof(g_sp_db.b), &priv_key,sizeof(priv_key))
370370
|| memcpy_s(&g_sp_db.g_b, sizeof(g_sp_db.g_b),
371371
&pub_key,sizeof(pub_key)))

common/inc/sgx_error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ typedef enum _status_t
8585
SGX_ERROR_UPDATE_NEEDED = SGX_MK_ERROR(0x4006), /* SGX needs to be updated */
8686
SGX_ERROR_NETWORK_FAILURE = SGX_MK_ERROR(0x4007), /* Network connecting or proxy setting issue is encountered */
8787
SGX_ERROR_AE_SESSION_INVALID = SGX_MK_ERROR(0x4008), /* Session is invalid or ended by server */
88-
SGX_ERROR_BUSY = SGX_MK_ERROR(0x400a), /* The requested service is temporarily not availabe */
88+
SGX_ERROR_BUSY = SGX_MK_ERROR(0x400a), /* The requested service is temporarily not available */
8989
SGX_ERROR_MC_NOT_FOUND = SGX_MK_ERROR(0x400c), /* The Monotonic Counter doesn't exist or has been invalided */
9090
SGX_ERROR_MC_NO_ACCESS_RIGHT = SGX_MK_ERROR(0x400d), /* Caller doesn't have the access right to specified VMC */
9191
SGX_ERROR_MC_USED_UP = SGX_MK_ERROR(0x400e), /* Monotonic counters are used out */

common/inc/sgx_tcrypto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ extern "C" {
455455
* dataset or data stream the incremented counter block should be used on successive
456456
* calls of the encryption/decryption process for that given stream. However for
457457
* new or different datasets/streams, the same counter should not be reused, instead
458-
* intialize the counter for the new data set.
458+
* initialize the counter for the new data set.
459459
* Note: SGXSSL based version doesn't support user given ctr_inc_bits. It use OpenSSL's implementation
460460
* which divide the counter block into two parts ([IV][counter])
461461
*

psw/ae/aesm_service/source/bundles/epid_quote_service_bundle/endpoint_select_info.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ ae_error_t EndpointSelectionInfo::verify_signature(const endpoint_selection_info
184184

185185
ae_err = aesm_check_pek_signature(es_info.pek, xegb);
186186
if(AE_SUCCESS != ae_err){
187-
AESM_DBG_ERROR("PEK Signature verifcation not passed:%d",ae_err);
187+
AESM_DBG_ERROR("PEK Signature verification not passed:%d",ae_err);
188188
goto ret_point;
189189
}
190190
AESM_DBG_INFO("PEK signature verified successfully");

psw/urts/urts_com.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static int __create_enclave(BinParser &parser,
409409
}
410410
}
411411

412-
//call trts to do some intialization
412+
//call trts to do some initialization
413413
if(SGX_SUCCESS != (ret = get_enclave_creator()->initialize(loader.get_enclave_id())))
414414
{
415415
sgx_status_t status = SGX_SUCCESS;

0 commit comments

Comments
 (0)