pub struct Algorithm<Id = AlgorithmId>where
Id: AlgorithmIdentifier,{
pub(crate) id: Id,
pub(crate) decapsulate_key_size: usize,
pub(crate) encapsulate_key_size: usize,
pub(crate) ciphertext_size: usize,
pub(crate) shared_secret_size: usize,
}
Expand description
A KEM algorithm
Fields§
§id: Id
§decapsulate_key_size: usize
§encapsulate_key_size: usize
§ciphertext_size: usize
Implementations§
Source§impl<Id> Algorithm<Id>where
Id: AlgorithmIdentifier,
impl<Id> Algorithm<Id>where
Id: AlgorithmIdentifier,
pub(crate) fn decapsulate_key_size(&self) -> usize
pub(crate) fn encapsulate_key_size(&self) -> usize
pub(crate) fn ciphertext_size(&self) -> usize
Trait Implementations§
Source§impl<Id> Debug for Algorithm<Id>where
Id: AlgorithmIdentifier,
impl<Id> Debug for Algorithm<Id>where
Id: AlgorithmIdentifier,
impl<Id> StructuralPartialEq for Algorithm<Id>where
Id: AlgorithmIdentifier,
Auto Trait Implementations§
impl<Id> Freeze for Algorithm<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for Algorithm<Id>where
Id: RefUnwindSafe,
impl<Id> Send for Algorithm<Id>where
Id: Send,
impl<Id> Sync for Algorithm<Id>where
Id: Sync,
impl<Id> Unpin for Algorithm<Id>where
Id: Unpin,
impl<Id> UnwindSafe for Algorithm<Id>where
Id: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more