pub struct MlDsa65Impl { /* private fields */ }
Expand description
ML-DSA-65 implementation using aws-lc-rs
Implementations§
Source§impl MlDsa65Impl
impl MlDsa65Impl
Sourcepub fn clear_cache(&self)
pub fn clear_cache(&self)
Clear the key cache
Trait Implementations§
Source§impl Clone for MlDsa65Impl
impl Clone for MlDsa65Impl
Source§impl MlDsaOperations for MlDsa65Impl
Available on crate feature aws-lc-rs
only.
impl MlDsaOperations for MlDsa65Impl
Available on crate feature
aws-lc-rs
only.Source§fn generate_keypair(&self) -> PqcResult<(MlDsaPublicKey, MlDsaSecretKey)>
fn generate_keypair(&self) -> PqcResult<(MlDsaPublicKey, MlDsaSecretKey)>
Generate a new ML-DSA keypair
Source§fn sign(
&self,
secret_key: &MlDsaSecretKey,
message: &[u8],
) -> PqcResult<MlDsaSignature>
fn sign( &self, secret_key: &MlDsaSecretKey, message: &[u8], ) -> PqcResult<MlDsaSignature>
Sign a message
Source§fn verify(
&self,
public_key: &MlDsaPublicKey,
message: &[u8],
signature: &MlDsaSignature,
) -> PqcResult<bool>
fn verify( &self, public_key: &MlDsaPublicKey, message: &[u8], signature: &MlDsaSignature, ) -> PqcResult<bool>
Verify a signature
Auto Trait Implementations§
impl Freeze for MlDsa65Impl
impl RefUnwindSafe for MlDsa65Impl
impl Send for MlDsa65Impl
impl Sync for MlDsa65Impl
impl Unpin for MlDsa65Impl
impl UnwindSafe for MlDsa65Impl
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