Expose the IKM to the crate

This commit is contained in:
Rodolphe Bréard 2024-02-15 18:21:43 +01:00
parent 2e4e467f47
commit cc97193d3a

View file

@ -6,13 +6,13 @@ const IKM_STRUCT_SIZE: usize = 57;
const IKM_CONTENT_SIZE: usize = 32; const IKM_CONTENT_SIZE: usize = 32;
#[derive(Debug)] #[derive(Debug)]
pub struct InputKeyMaterial { pub(crate) struct InputKeyMaterial {
id: u32, pub(crate) id: u32,
scheme: Scheme, pub(crate) scheme: Scheme,
content: [u8; IKM_CONTENT_SIZE], pub(crate) content: [u8; IKM_CONTENT_SIZE],
created_at: SystemTime, pub(crate) created_at: SystemTime,
expire_at: SystemTime, pub(crate) expire_at: SystemTime,
is_revoked: bool, pub(crate) is_revoked: bool,
} }
impl InputKeyMaterial { impl InputKeyMaterial {