mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add missing api for emulation
This commit is contained in:
parent
da5c215477
commit
558b96cfd5
1 changed files with 10 additions and 0 deletions
|
|
@ -50,3 +50,13 @@ impl RngCore for Trng {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CryptoRng for Trng {}
|
impl CryptoRng for Trng {}
|
||||||
|
|
||||||
|
pub mod api {
|
||||||
|
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive, PartialEq, Eq, Copy, Clone)]
|
||||||
|
pub enum TrngTestMode {
|
||||||
|
// No test mode configured. Whitened data is sampled.
|
||||||
|
None,
|
||||||
|
// Raw TRNG output.
|
||||||
|
Raw,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue