Skip to content

Commit

Permalink
Add SE050 random error reporting to status
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Sep 15, 2023
1 parent 3b05fe1 commit 0bc4cde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions runners/embedded/src/bin/app-nrf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ mod app {
})()
.unwrap_or_else(|_err| {
debug_now!("Got error when getting SE050 initial entropy: {_err:?}");
init_status |= ERL::types::InitStatus::SE050_RAND_ERROR;
seed
});

Expand Down
1 change: 1 addition & 0 deletions runners/embedded/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ bitflags! {
const INTERNAL_FLASH_ERROR = 0b00000010;
const EXTERNAL_FLASH_ERROR = 0b00000100;
const MIGRATION_ERROR = 0b00001000;
const SE050_RAND_ERROR = 0b00010000;
}
}

Expand Down

0 comments on commit 0bc4cde

Please sign in to comment.