mirror of
https://github.com/trussed-dev/piv-authenticator.git
synced 2026-06-20 04:16:15 -07:00
Remove const generic in state
This commit is contained in:
committed by
Nicolas Stalder
parent
d5564b89be
commit
10dd4d929b
+2
-1
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user