pub struct AlgorithmInfo {
pub name: &'static str,
pub oid: &'static str,
pub algorithm_type: AlgorithmType,
pub family: AlgorithmFamily,
pub security_level: SecurityLevel,
pub public_key_size: usize,
pub private_key_size: usize,
pub sizes: AlgorithmSizes,
}Expand description
Information about a specific algorithm variant.
Fields§
§name: &'static strThe algorithm name string (e.g., “ML-KEM-512”)
oid: &'static strThe OID in dotted notation
algorithm_type: AlgorithmTypeThe algorithm type (KEM or Sign)
family: AlgorithmFamilyThe algorithm family
security_level: SecurityLevelNIST security level
public_key_size: usizePublic key size in bytes
private_key_size: usizePrivate/secret key size in bytes
sizes: AlgorithmSizesType-specific sizes (ciphertext for KEMs, signature for signing)
Trait Implementations§
Source§impl Clone for AlgorithmInfo
impl Clone for AlgorithmInfo
Source§fn clone(&self) -> AlgorithmInfo
fn clone(&self) -> AlgorithmInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlgorithmInfo
impl Debug for AlgorithmInfo
Source§impl PartialEq for AlgorithmInfo
impl PartialEq for AlgorithmInfo
impl Copy for AlgorithmInfo
impl Eq for AlgorithmInfo
impl StructuralPartialEq for AlgorithmInfo
Auto Trait Implementations§
impl Freeze for AlgorithmInfo
impl RefUnwindSafe for AlgorithmInfo
impl Send for AlgorithmInfo
impl Sync for AlgorithmInfo
impl Unpin for AlgorithmInfo
impl UnsafeUnpin for AlgorithmInfo
impl UnwindSafe for AlgorithmInfo
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