From 8be0d1db09c773c6d23cb5d66aaafd68d139cd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=A0=E8=90=9D=E6=9C=89=E7=82=B9=E9=85=B8?= Date: Tue, 5 Nov 2024 01:30:57 +0000 Subject: [PATCH 1/5] update attestation/rats-tls/0001-add-virtcca-instance.patch. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 菠萝有点酸 --- attestation/rats-tls/0001-add-virtcca-instance.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attestation/rats-tls/0001-add-virtcca-instance.patch b/attestation/rats-tls/0001-add-virtcca-instance.patch index afa38fb..e07e2f9 100644 --- a/attestation/rats-tls/0001-add-virtcca-instance.patch +++ b/attestation/rats-tls/0001-add-virtcca-instance.patch @@ -868,7 +868,7 @@ index 0000000..3d08ff2 + goto out; + } + -+ /* ToDo: add verifiy ima-sig template */ ++ /* ToDo: add verify ima-sig template */ + + offset += field_len; + printf(" "); -- Gitee From 9dddbc083f9d0e3f8e7c45680698b3e37e48a1fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=A0=E8=90=9D=E6=9C=89=E7=82=B9=E9=85=B8?= Date: Tue, 5 Nov 2024 01:34:39 +0000 Subject: [PATCH 2/5] update attestation/rats-tls/0001-add-virtcca-instance.patch. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 菠萝有点酸 --- attestation/rats-tls/0001-add-virtcca-instance.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attestation/rats-tls/0001-add-virtcca-instance.patch b/attestation/rats-tls/0001-add-virtcca-instance.patch index e07e2f9..709df30 100644 --- a/attestation/rats-tls/0001-add-virtcca-instance.patch +++ b/attestation/rats-tls/0001-add-virtcca-instance.patch @@ -4374,7 +4374,7 @@ index e1a70e6..50c61e3 100644 + nonce[4], nonce[5], nonce[6], nonce[7]); + + if (nonce_buffer_size != nonce_size) { -+ RTLS_ERR("unmatched nonce lenth in claims buffer\n"); ++ RTLS_ERR("unmatched nonce length in claims buffer\n"); + ret = TLS_WRAPPER_ERR_INVALID; + goto err; + } @@ -4638,7 +4638,7 @@ index 20acd4f..2ef86df 100644 + + t_err = openssl_tls_get_nonce(tls_ctx, false, nonce_buffer, &nonce_buffer_size); + if (t_err != TLS_WRAPPER_ERR_NONE) { -+ RTLS_ERR("faild to get sent nonce %#x\n", t_err); ++ RTLS_ERR("failed to get sent nonce %#x\n", t_err); + return 0; + } + -- Gitee From f827eb6c0b0b8d8e31efbef17dd90185a35585ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=A0=E8=90=9D=E6=9C=89=E7=82=B9=E9=85=B8?= Date: Tue, 5 Nov 2024 01:35:42 +0000 Subject: [PATCH 3/5] update attestation/sdk/include/attestation.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 菠萝有点酸 --- attestation/sdk/include/attestation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 4c8daba965f168454f7f8900180d77588d22b331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=A0=E8=90=9D=E6=9C=89=E7=82=B9=E9=85=B8?= Date: Tue, 5 Nov 2024 01:37:57 +0000 Subject: [PATCH 4/5] update attestation/rim_ref/src/gen_rim_ref.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 菠萝有点酸 --- attestation/rim_ref/src/gen_rim_ref.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attestation/rim_ref/src/gen_rim_ref.c b/attestation/rim_ref/src/gen_rim_ref.c index 5bf900e..2ba8323 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 contex\n"); return 2; } -- Gitee From ce13b41dbba93f78648ecc399cfc4b70f2ba958f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=A0=E8=90=9D=E6=9C=89=E7=82=B9=E9=85=B8?= Date: Tue, 5 Nov 2024 01:40:11 +0000 Subject: [PATCH 5/5] update confidential_container/attestation-service.patch. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 菠萝有点酸 --- confidential_container/attestation-service.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confidential_container/attestation-service.patch b/confidential_container/attestation-service.patch index 802806b..ba1967b 100644 --- a/confidential_container/attestation-service.patch +++ b/confidential_container/attestation-service.patch @@ -270,7 +270,7 @@ index 0000000..eae1fd1 + .arg(&digest_list_file) + .output()?; + if output.stdout.is_empty() { -+ log::error!("there is no refernce base value of file digest {:?}", hex_str_digest); ++ log::error!("there is no reference base value of file digest {:?}", hex_str_digest); + } + } + -- Gitee