pub(crate) enum AlgorithmID {
ML_DSA_44,
ML_DSA_65,
ML_DSA_87,
}Variants§
Implementations§
Source§impl AlgorithmID
impl AlgorithmID
pub(crate) const fn from_nid(nid: c_int) -> Result<Self, Unspecified>
pub(crate) const fn nid(&self) -> c_int
pub(crate) const fn priv_key_size_bytes(&self) -> usize
pub(crate) const fn pub_key_size_bytes(&self) -> usize
pub(crate) const fn seed_size_bytes(&self) -> usize
pub(crate) const fn signature_size_bytes(&self) -> usize
Trait Implementations§
Source§impl Debug for AlgorithmID
impl Debug for AlgorithmID
Source§impl PartialEq for AlgorithmID
impl PartialEq for AlgorithmID
Source§fn eq(&self, other: &AlgorithmID) -> bool
fn eq(&self, other: &AlgorithmID) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AlgorithmID
impl StructuralPartialEq for AlgorithmID
Auto Trait Implementations§
impl Freeze for AlgorithmID
impl RefUnwindSafe for AlgorithmID
impl Send for AlgorithmID
impl Sync for AlgorithmID
impl Unpin for AlgorithmID
impl UnsafeUnpin for AlgorithmID
impl UnwindSafe for AlgorithmID
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