Skip to content

Commit

Permalink
[fix] CFI improvement (#1087)
Browse files Browse the repository at this point in the history
Co-authored-by: Kor Nielsen <[email protected]>
  • Loading branch information
mhatrevi and korran authored Nov 17, 2023
1 parent 82fd594 commit b59c1ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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
baf2ff6d900221337659251515381a7cc0ec860b15ab6b26dfb4d86a2abf37dc82c95b1b7658ffecaf1f773c009bc2d8 caliptra-rom-no-log.bin
82e87a27e9120462aad521c23395528420c9560adb563f9a01dd12efa54a33aecc41c8c7eb9d977e541815491f1522ac caliptra-rom-with-log.bin
417f3d492dec902bb20d3f54fe54374a236e8f8aa5ae250d7de08dda6d12ea0c6f009d4ccbf83c6963c321a771788ea2 caliptra-rom-no-log.bin
544c6e5244a35d6a39ba85fc8b90c3ef7816bb385d28ee46accf0475924a835b42418d9b10f6ad3e090fcfc25e1f0f1a caliptra-rom-with-log.bin
10 changes: 6 additions & 4 deletions rom/dev/src/flow/cold_reset/fw_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,12 @@ impl FirmwareProcessor {
image: venv.image,
};

// Random delays for CFI glitch protection.
for _ in 0..4 {
CfiCounter::delay();
}
// Random delay for CFI glitch protection.
CfiCounter::delay();
CfiCounter::delay();
CfiCounter::delay();
CfiCounter::delay();

let mut verifier = ImageVerifier::new(venv);
let info = verifier.verify(manifest, img_bundle_sz, ResetReason::ColdReset)?;

Expand Down

0 comments on commit b59c1ae

Please sign in to comment.