From d733dbe542cd4302531969f33b7d51ec1168cbae Mon Sep 17 00:00:00 2001 From: Caohongtao Date: Tue, 8 Oct 2024 03:15:29 +0000 Subject: [PATCH] Fix some worlds spelling mistakes Signed-off-by: Caohongtao --- attestation/rim_ref/CMakeLists.txt | 2 +- attestation/rim_ref/src/gen_rim_ref.c | 6 +++--- attestation/sdk/include/attestation.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/attestation/rim_ref/CMakeLists.txt b/attestation/rim_ref/CMakeLists.txt index 6c75416..ea0d67f 100644 --- a/attestation/rim_ref/CMakeLists.txt +++ b/attestation/rim_ref/CMakeLists.txt @@ -33,7 +33,7 @@ set(SOURCES src/gen_rim_ref.c include_directories(${GLIB_INCLUDE_DIRS} ${GOBJECT_INCLUDE_DIRS}) link_directories(${GLIB_LIBRARY_DIRS} ${GOBJECT_LIBRARY_DIRS}) -# Generate excutable +# Generate executable add_executable(${PROJECT_NAME} ${SOURCES}) target_compile_definitions(${PROJECT_NAME} PRIVATE LOG_PRINT=0) target_include_directories(${PROJECT_NAME} PRIVATE ${INCLUDE_DIRS}) diff --git a/attestation/rim_ref/src/gen_rim_ref.c b/attestation/rim_ref/src/gen_rim_ref.c index 5bf900e..0e46fd7 100644 --- a/attestation/rim_ref/src/gen_rim_ref.c +++ b/attestation/rim_ref/src/gen_rim_ref.c @@ -140,13 +140,13 @@ static int do_hash(enum hash_algo hash_algo, md = EVP_sha512(); break; default: - printf("Unspported hash algorithnm\n"); + printf("Unsupported hash algorithnm\n"); return 1; } mdctx = EVP_MD_CTX_new(); if (mdctx == NULL) { - printf("Failed to initialiaze digest contex\n"); + printf("Failed to initialize digest context\n"); return 2; } @@ -254,7 +254,7 @@ void measure_tmi_data_create(cvm_init_measure_t *meas, tmi_data_create_params_t /* Allocate an TmiMeasurementDescriptorData data structure */ tmi_measure_data_t measure_desc = {0}; - /* Initialize the measurement descriptior structure */ + /* Initialize the measurement descriptor structure */ /* Set the desc_type field to the descriptor type */ measure_desc.desc_type = MEASURE_DESC_TYPE_DATA; /* Set the len field to the descriptor length */ diff --git a/attestation/sdk/include/attestation.h b/attestation/sdk/include/attestation.h index b1c45e4..29d957b 100644 --- a/attestation/sdk/include/attestation.h +++ b/attestation/sdk/include/attestation.h @@ -44,7 +44,7 @@ int get_version(tsi_ctx *ctx, int *major, int *minor); * @brief Get attestation token. * @param ctx [IN] TSI context * @param challenge [IN] Challenge - * @param challenge_len [IN] Size of challenge. The maxinum value is 64. + * @param challenge_len [IN] Size of challenge. The maximum value is 64. * @param token [OUT] Attestation token * @param token_len [IN/OUT] Size of attestation token * @return TSI_SUCCESS Success -- Gitee