diff --git a/attestation/rim_ref/CMakeLists.txt b/attestation/rim_ref/CMakeLists.txt index 6c75416ec1df081a6d91d0384fd8d1c299e621ff..ea0d67fae35adc3a1ea675028d5b5b2a9ec9099d 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 5bf900ec39d695cfb4c38c6374f53bb05e1ff97b..0e46fd774c42b0525459ad870ae0d1b0cc083cd1 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 b1c45e47d5a9ff44c6bedc5d6ddd3ad7378e9547..29d957b5507a22d1017ad7cc051df77db6522285 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