pub struct SoftwarePqcFallback;Expand description
Software fallback for PQC operations.
When HSM does not support ML-DSA or ML-KEM, fall back to synta-certificate software implementations.
Implementations§
Source§impl SoftwarePqcFallback
impl SoftwarePqcFallback
Sourcepub fn is_hsm_supported(
mechanism_type: MechanismType,
provider_mechanisms: &[MechanismType],
) -> bool
pub fn is_hsm_supported( mechanism_type: MechanismType, provider_mechanisms: &[MechanismType], ) -> bool
Check if HSM supports the required PQC mechanism.
Sourcepub fn sign_ml_dsa_software(
_message: &[u8],
_private_key_bytes: &[u8],
_level: MlDsaLevel,
) -> HsmResult<Vec<u8>>
pub fn sign_ml_dsa_software( _message: &[u8], _private_key_bytes: &[u8], _level: MlDsaLevel, ) -> HsmResult<Vec<u8>>
Sign with ML-DSA using software implementation.
This is a placeholder - actual implementation would use synta-certificate.
Sourcepub fn ml_kem_encapsulate_software(
_public_key_bytes: &[u8],
_level: MlKemLevel,
) -> HsmResult<(Vec<u8>, Vec<u8>)>
pub fn ml_kem_encapsulate_software( _public_key_bytes: &[u8], _level: MlKemLevel, ) -> HsmResult<(Vec<u8>, Vec<u8>)>
ML-KEM encapsulate using software implementation.
Sourcepub fn ml_kem_decapsulate_software(
_private_key_bytes: &[u8],
_ciphertext: &[u8],
_level: MlKemLevel,
) -> HsmResult<Vec<u8>>
pub fn ml_kem_decapsulate_software( _private_key_bytes: &[u8], _ciphertext: &[u8], _level: MlKemLevel, ) -> HsmResult<Vec<u8>>
ML-KEM decapsulate using software implementation.
Auto Trait Implementations§
impl Freeze for SoftwarePqcFallback
impl RefUnwindSafe for SoftwarePqcFallback
impl Send for SoftwarePqcFallback
impl Sync for SoftwarePqcFallback
impl Unpin for SoftwarePqcFallback
impl UnsafeUnpin for SoftwarePqcFallback
impl UnwindSafe for SoftwarePqcFallback
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