Remove const generic in state

This commit is contained in:
Sosthène Guédon
2024-03-01 14:29:40 +01:00
committed by Nicolas Stalder
parent d5564b89be
commit 10dd4d929b
6 changed files with 25 additions and 29 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
#[allow(unused)]
pub const COMMAND_SIZE: usize = 3072;
#[macro_export]
@@ -9,7 +10,7 @@ macro_rules! cmd {
use trussed::virt::{Client, Ram};
pub type Piv = piv_authenticator::Authenticator<Client<Ram>, COMMAND_SIZE>;
pub type Piv = piv_authenticator::Authenticator<Client<Ram>>;
pub fn piv<R>(test: impl FnOnce(&mut Piv) -> R) -> R {
trussed::virt::with_ram_client("test", |client| {