Skip to content

Commit

Permalink
Changing SHA384 kat digest failure to use correct error code (#1479)
Browse files Browse the repository at this point in the history
  • Loading branch information
nquarton authored Apr 29, 2024
1 parent f980c23 commit 946d24f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions FROZEN_IMAGES.sha384sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# WARNING: Do not update this file without the approval of the Caliptra TAC
2d9cd802ad3db07f28a3a216510005fc90b9af2bd9886e28d0c41f534999c56a662cc49dbfed83b455f9be14b241069a caliptra-rom-no-log.bin
f9d7c71bfc1773c8ac7ffe1025f344fe6b12ba42072fa6b8791bb5dcf0dc7296ea1dbbc982c4a5e1c3da684e01a719f9 caliptra-rom-with-log.bin
e9a62dbff407c1904fd6fb7cfbb9b146493602674adc2a2f7f2bf224d4f4918295fad6439e7bf4fa64edbec6baa039f8 caliptra-rom-no-log.bin
a8a703dad1c6da2ee05d23f392d1b62a47b52da9110e89481ed95f0bc8e251f87da340e1cb940c29edd5945fb857550c caliptra-rom-with-log.bin
2 changes: 1 addition & 1 deletion kat/src/sha384_kat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl Sha384Kat {
let data = &[];
let digest = sha
.digest(data)
.map_err(|_| CaliptraError::ROM_KAT_SHA384_DIGEST_MISMATCH)?;
.map_err(|_| CaliptraError::ROM_KAT_SHA384_DIGEST_FAILURE)?;

if digest != SHA384_EXPECTED_DIGEST {
Err(CaliptraError::ROM_KAT_SHA384_DIGEST_MISMATCH)?;
Expand Down

0 comments on commit 946d24f

Please sign in to comment.