Skip to content

Commit

Permalink
Simplify UART output to reduce ROM size (-160 bytes)
Browse files Browse the repository at this point in the history
  • Loading branch information
korran committed Jul 28, 2023
1 parent d3d558a commit 597a0e4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rom/dev/src/kat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ use crate::{cprintln, rom_env::RomEnv};
pub fn execute_kat(env: &mut RomEnv) -> CaliptraResult<()> {
cprintln!("[kat] ++");

cprintln!("[kat] Executing SHA1 Engine KAT");
cprintln!("[kat] sha1");
Sha1Kat::default().execute(&mut env.sha1)?;

cprintln!("[kat] Executing SHA2-256 Engine KAT");
cprintln!("[kat] SHA2-256");
Sha256Kat::default().execute(&mut env.sha256)?;

cprintln!("[kat] Executing SHA2-384 Engine KAT");
cprintln!("[kat] SHA2-384");
Sha384Kat::default().execute(&mut env.sha384)?;

cprintln!("[kat] Executing SHA2-384 Accelerator KAT");
cprintln!("[kat] SHA2-384-ACC");
Sha384AccKat::default().execute(&mut env.sha384_acc)?;

cprintln!("[kat] Executing ECC-384 Engine KAT");
cprintln!("[kat] ECC-384");
Ecc384Kat::default().execute(&mut env.ecc384, &mut env.trng)?;

cprintln!("[kat] Executing HMAC-384 Engine KAT");
cprintln!("[kat] HMAC-384");
Hmac384Kat::default().execute(&mut env.hmac384, &mut env.trng)?;

cprintln!("[kat] Executing LMS Engine KAT");
cprintln!("[kat] LMS");
LmsKat::default().execute(&mut env.sha256, &env.lms)?;

cprintln!("[kat] --");
Expand Down

0 comments on commit 597a0e4

Please sign in to comment.