From 7b97a8b6d0f53aa5b8b22c79e54892bef65e312a Mon Sep 17 00:00:00 2001 From: Mikko Ylinen Date: Fri, 7 Jun 2024 16:35:40 +0300 Subject: [PATCH] WIP: kbs_protocol updates for ITA Signed-off-by: Mikko Ylinen --- attestation-agent/kbs_protocol/src/client/rcar_client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attestation-agent/kbs_protocol/src/client/rcar_client.rs b/attestation-agent/kbs_protocol/src/client/rcar_client.rs index bf52fa2f5..7aedbfa3c 100644 --- a/attestation-agent/kbs_protocol/src/client/rcar_client.rs +++ b/attestation-agent/kbs_protocol/src/client/rcar_client.rs @@ -13,7 +13,7 @@ use log::{debug, warn}; use resource_uri::ResourceUri; use serde::Deserialize; use serde_json::json; -use sha2::{Digest, Sha384}; +use sha2::{Digest, Sha512}; use crate::{ api::KbsClientCapabilities, @@ -189,7 +189,7 @@ impl KbsClient> { nonce: String, ) -> Result { debug!("Challenge nonce: {nonce}"); - let mut hasher = Sha384::new(); + let mut hasher = Sha512::new(); hasher.update(runtime_data); let ehd = match tee {