Skip to content

Commit

Permalink
And random generator and config failures to init status bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey authored and robin-nitrokey committed Jul 31, 2024
1 parent 1e72182 commit 29af982
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## Unreleased

-
### Features

- `trussed.admin_app`: Add error codes `CONFIG_ERROR` and `RNG_ERROR` to `InitStatus` enum

## [v0.1.0](https://github.com/Nitrokey/nitrokey-sdk-py/releases/tag/v0.1.0) (2024-07-29)

Expand Down
2 changes: 2 additions & 0 deletions src/nitrokey/trussed/admin_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class InitStatus(IntFlag):
EXTERNAL_FLASH_ERROR = 0b0100
MIGRATION_ERROR = 0b1000
SE050_ERROR = 0b00010000
CONFIG_ERROR = 0b00100000
RNG_ERROR = 0b01000000

def is_error(self) -> bool:
return self.value != 0
Expand Down

0 comments on commit 29af982

Please sign in to comment.