Skip to content

Commit

Permalink
derived_key: type issue confidential-containers#3
Browse files Browse the repository at this point in the history
  • Loading branch information
eldios committed Jan 22, 2025
1 parent 04b57fa commit 19f4a89
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions attestation-agent/attester/src/snp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ impl Attester for SnpAttester {

context.resize(64, 0);
let root_key: u8 = root_key_hinit
.try_into()
.context("Invalid root key length")?;
.first()
.copied()
.context("Invalid key or empty key specified")?;

let mut firmware = Firmware::open()?;

Expand Down

0 comments on commit 19f4a89

Please sign in to comment.