pub struct PqcMechanismIds {
pub ml_dsa_keygen: Option<u64>,
pub ml_dsa_44: Option<u64>,
pub ml_dsa_65: Option<u64>,
pub ml_dsa_87: Option<u64>,
pub ml_kem_keygen: Option<u64>,
pub ml_kem_512: Option<u64>,
pub ml_kem_768: Option<u64>,
pub ml_kem_1024: Option<u64>,
}Expand description
Vendor-specific PQC mechanism IDs.
PQC mechanisms are not yet standardized in PKCS#11 v3.1. Different vendors use different mechanism IDs. This struct holds configurable IDs per provider.
Fields§
§ml_dsa_keygen: Option<u64>ML-DSA key pair generation (FIPS 204).
ml_dsa_44: Option<u64>ML-DSA-44 signing.
ml_dsa_65: Option<u64>ML-DSA-65 signing.
ml_dsa_87: Option<u64>ML-DSA-87 signing.
ml_kem_keygen: Option<u64>ML-KEM key pair generation (FIPS 203).
ml_kem_512: Option<u64>ML-KEM-512 encapsulate/decapsulate.
ml_kem_768: Option<u64>ML-KEM-768 encapsulate/decapsulate.
ml_kem_1024: Option<u64>ML-KEM-1024 encapsulate/decapsulate.
Trait Implementations§
Source§impl Clone for PqcMechanismIds
impl Clone for PqcMechanismIds
Source§fn clone(&self) -> PqcMechanismIds
fn clone(&self) -> PqcMechanismIds
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 PqcMechanismIds
impl Debug for PqcMechanismIds
Source§impl Default for PqcMechanismIds
impl Default for PqcMechanismIds
Source§impl<'de> Deserialize<'de> for PqcMechanismIds
impl<'de> Deserialize<'de> for PqcMechanismIds
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PqcMechanismIds
impl RefUnwindSafe for PqcMechanismIds
impl Send for PqcMechanismIds
impl Sync for PqcMechanismIds
impl Unpin for PqcMechanismIds
impl UnsafeUnpin for PqcMechanismIds
impl UnwindSafe for PqcMechanismIds
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