pub struct MlDsa87P384Keypair { /* private fields */ }Available on crate features
mldsa and p384 only.Expand description
ML-DSA-87 and ECDSA P-384 composite keypair.
Implementations§
Trait Implementations§
Source§impl AsRef<MlDsa87P384PublicKey> for MlDsa87P384Keypair
impl AsRef<MlDsa87P384PublicKey> for MlDsa87P384Keypair
Source§fn as_ref(&self) -> &MlDsa87P384PublicKey
fn as_ref(&self) -> &MlDsa87P384PublicKey
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for MlDsa87P384Keypair
impl Clone for MlDsa87P384Keypair
Source§impl CtEq for MlDsa87P384Keypair
impl CtEq for MlDsa87P384Keypair
Source§impl Debug for MlDsa87P384Keypair
impl Debug for MlDsa87P384Keypair
Source§impl Decode for MlDsa87P384Keypair
impl Decode for MlDsa87P384Keypair
Source§impl Encode for MlDsa87P384Keypair
impl Encode for MlDsa87P384Keypair
Source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding. Read more
Source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32 length prefix. Read moreimpl Eq for MlDsa87P384Keypair
Source§impl From<&MlDsa87P384Keypair> for MlDsa87P384PublicKey
impl From<&MlDsa87P384Keypair> for MlDsa87P384PublicKey
Source§fn from(keypair: &MlDsa87P384Keypair) -> Self
fn from(keypair: &MlDsa87P384Keypair) -> Self
Converts to this type from the input type.
Source§impl From<MlDsa87P384Keypair> for KeypairData
impl From<MlDsa87P384Keypair> for KeypairData
Source§fn from(keypair: MlDsa87P384Keypair) -> KeypairData
fn from(keypair: MlDsa87P384Keypair) -> KeypairData
Converts to this type from the input type.
Source§impl From<MlDsa87P384Keypair> for PrivateKey
impl From<MlDsa87P384Keypair> for PrivateKey
Source§fn from(keypair: MlDsa87P384Keypair) -> PrivateKey
fn from(keypair: MlDsa87P384Keypair) -> PrivateKey
Converts to this type from the input type.
Source§impl From<MlDsa87P384Keypair> for MlDsa87P384PublicKey
impl From<MlDsa87P384Keypair> for MlDsa87P384PublicKey
Source§fn from(keypair: MlDsa87P384Keypair) -> Self
fn from(keypair: MlDsa87P384Keypair) -> Self
Converts to this type from the input type.
Source§impl From<MlDsa87P384PrivateKey> for MlDsa87P384Keypair
impl From<MlDsa87P384PrivateKey> for MlDsa87P384Keypair
Source§fn from(private: MlDsa87P384PrivateKey) -> Self
fn from(private: MlDsa87P384PrivateKey) -> Self
Converts to this type from the input type.
Source§impl KeypairRef for MlDsa87P384Keypair
impl KeypairRef for MlDsa87P384Keypair
Source§type VerifyingKey = MlDsa87P384PublicKey
type VerifyingKey = MlDsa87P384PublicKey
Verifying key type for this keypair.
Source§impl PartialEq for MlDsa87P384Keypair
impl PartialEq for MlDsa87P384Keypair
Source§impl RandomizedSigner<Signature> for MlDsa87P384Keypair
impl RandomizedSigner<Signature> for MlDsa87P384Keypair
Source§fn try_sign_with_rng<R: TryCryptoRng + ?Sized>(
&self,
rng: &mut R,
msg: &[u8],
) -> Result<Signature>
fn try_sign_with_rng<R: TryCryptoRng + ?Sized>( &self, rng: &mut R, msg: &[u8], ) -> Result<Signature>
Attempt to sign the given message, returning a digital signature on success, or an error if
something went wrong. Read more
Source§impl Signer<Signature> for MlDsa87P384Keypair
impl Signer<Signature> for MlDsa87P384Keypair
Auto Trait Implementations§
impl Forget for MlDsa87P384Keypair
impl Freeze for MlDsa87P384Keypairwhere
*const Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>> is !null: Freeze,
PhantomData<Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>>>: Freeze,
[u8; 97]: Freeze,
[u8; 32]: Freeze,
Uint<6>: Freeze,
impl Move for MlDsa87P384Keypair
impl RefUnwindSafe for MlDsa87P384Keypairwhere
[u8; 2592]: RefUnwindSafe,
[u8; 97]: RefUnwindSafe,
[u8; 32]: RefUnwindSafe,
Uint<6>: RefUnwindSafe,
impl Send for MlDsa87P384Keypairwhere
BoxRaw<Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>>>: Send,
Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>, B1>>: Send,
Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>: Send,
Uint<6>: Send,
impl Sync for MlDsa87P384Keypairwhere
BoxRaw<Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>>>: Sync,
Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>, B1>>: Sync,
Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>: Sync,
Uint<6>: Sync,
impl Unpin for MlDsa87P384Keypair
impl UnsafeUnpin for MlDsa87P384Keypairwhere
*const Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>> is !null: UnsafeUnpin,
PhantomData<Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>>>: UnsafeUnpin,
[u8; 97]: UnsafeUnpin,
[u8; 32]: UnsafeUnpin,
Uint<6>: UnsafeUnpin,
impl UnwindSafe for MlDsa87P384Keypair
Blanket Implementations§
Source§impl<S, T> AsyncRandomizedSigner<S> for Twhere
T: RandomizedSigner<S>,
impl<S, T> AsyncRandomizedSigner<S> for Twhere
T: RandomizedSigner<S>,
Source§async fn try_sign_with_rng_async<R>(
&self,
rng: &mut R,
msg: &[u8],
) -> Result<S, Error>where
R: TryCryptoRng + ?Sized,
async fn try_sign_with_rng_async<R>(
&self,
rng: &mut R,
msg: &[u8],
) -> Result<S, Error>where
R: TryCryptoRng + ?Sized,
Attempt to sign the given message, returning a digital signature on success, or an error if
something went wrong. Read more
Source§impl<S, T> AsyncSigner<S> for Twhere
T: Signer<S>,
impl<S, T> AsyncSigner<S> for Twhere
T: Signer<S>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<K> Keypair for Kwhere
K: KeypairRef,
impl<K> Keypair for Kwhere
K: KeypairRef,
Source§type VerifyingKey = <K as KeypairRef>::VerifyingKey
type VerifyingKey = <K as KeypairRef>::VerifyingKey
Verifying key type for this keypair.
Source§fn verifying_key(&self) -> <K as Keypair>::VerifyingKey
fn verifying_key(&self) -> <K as Keypair>::VerifyingKey
Get the verifying key which can verify signatures produced by the
signing key portion of this keypair.
Source§impl<S, T> RandomizedSignerMut<S> for Twhere
T: RandomizedSigner<S>,
impl<S, T> RandomizedSignerMut<S> for Twhere
T: RandomizedSigner<S>,
Source§fn try_sign_with_rng<R>(&mut self, rng: &mut R, msg: &[u8]) -> Result<S, Error>where
R: TryCryptoRng + ?Sized,
fn try_sign_with_rng<R>(&mut self, rng: &mut R, msg: &[u8]) -> Result<S, Error>where
R: TryCryptoRng + ?Sized,
Attempt to sign the given message, updating the state, and returning a digital signature on
success, or an error if something went wrong. Read more