Skip to content

Commit

Permalink
WIP: kbs_protocol updates for ITA
Browse files Browse the repository at this point in the history
Signed-off-by: Mikko Ylinen <[email protected]>
(cherry picked from commit 7b97a8b)

 Conflicts:
	attestation-agent/kbs_protocol/src/client/rcar_client.rs
  • Loading branch information
mythi authored and fidencio committed Jun 18, 2024
1 parent adca2f9 commit de7d2bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions attestation-agent/kbs_protocol/src/client/rcar_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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,
Expand Down Expand Up @@ -180,7 +180,7 @@ impl KbsClient<Box<dyn EvidenceProvider>> {
}

async fn generate_evidence(&self, runtime_data: String) -> Result<String> {
let mut hasher = Sha384::new();
let mut hasher = Sha512::new();
hasher.update(runtime_data);

let ehd = hasher.finalize().to_vec();
Expand Down

0 comments on commit de7d2bb

Please sign in to comment.