pub struct MlDsa44Ed25519Keypair {
pub public: MlDsa44Ed25519PublicKey,
pub private: MlDsa44Ed25519PrivateKey,
}Available on crate features
ed25519 and mldsa only.Expand description
MLDSA44-Ed25519-SHA512 composite keypair.
OpenSSH encodes the public key and the concatenated private seeds as two SSH strings.
Fields§
§public: MlDsa44Ed25519PublicKeyPublic key.
private: MlDsa44Ed25519PrivateKeyPrivate key.
Implementations§
Source§impl MlDsa44Ed25519Keypair
impl MlDsa44Ed25519Keypair
Sourcepub fn random<R: CryptoRng + ?Sized>(rng: &mut R) -> Result<Self>
pub fn random<R: CryptoRng + ?Sized>(rng: &mut R) -> Result<Self>
Generate a random composite keypair.
§Errors
Propagates errors from private key generation and public key derivation.
Trait Implementations§
Source§impl AsRef<MlDsa44Ed25519PublicKey> for MlDsa44Ed25519Keypair
impl AsRef<MlDsa44Ed25519PublicKey> for MlDsa44Ed25519Keypair
Source§fn as_ref(&self) -> &MlDsa44Ed25519PublicKey
fn as_ref(&self) -> &MlDsa44Ed25519PublicKey
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for MlDsa44Ed25519Keypair
impl Clone for MlDsa44Ed25519Keypair
Source§impl CtEq for MlDsa44Ed25519Keypair
impl CtEq for MlDsa44Ed25519Keypair
Source§impl Debug for MlDsa44Ed25519Keypair
impl Debug for MlDsa44Ed25519Keypair
Source§impl Decode for MlDsa44Ed25519Keypair
impl Decode for MlDsa44Ed25519Keypair
Source§impl Encode for MlDsa44Ed25519Keypair
impl Encode for MlDsa44Ed25519Keypair
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 MlDsa44Ed25519Keypair
Source§impl From<&MlDsa44Ed25519Keypair> for MlDsa44Ed25519PublicKey
impl From<&MlDsa44Ed25519Keypair> for MlDsa44Ed25519PublicKey
Source§fn from(keypair: &MlDsa44Ed25519Keypair) -> Self
fn from(keypair: &MlDsa44Ed25519Keypair) -> Self
Converts to this type from the input type.
Source§impl From<MlDsa44Ed25519Keypair> for KeypairData
impl From<MlDsa44Ed25519Keypair> for KeypairData
Source§fn from(keypair: MlDsa44Ed25519Keypair) -> KeypairData
fn from(keypair: MlDsa44Ed25519Keypair) -> KeypairData
Converts to this type from the input type.
Source§impl From<MlDsa44Ed25519Keypair> for PrivateKey
impl From<MlDsa44Ed25519Keypair> for PrivateKey
Source§fn from(keypair: MlDsa44Ed25519Keypair) -> PrivateKey
fn from(keypair: MlDsa44Ed25519Keypair) -> PrivateKey
Converts to this type from the input type.
Source§impl From<MlDsa44Ed25519Keypair> for MlDsa44Ed25519PublicKey
impl From<MlDsa44Ed25519Keypair> for MlDsa44Ed25519PublicKey
Source§fn from(keypair: MlDsa44Ed25519Keypair) -> Self
fn from(keypair: MlDsa44Ed25519Keypair) -> Self
Converts to this type from the input type.
Source§impl KeypairRef for MlDsa44Ed25519Keypair
impl KeypairRef for MlDsa44Ed25519Keypair
Source§type VerifyingKey = MlDsa44Ed25519PublicKey
type VerifyingKey = MlDsa44Ed25519PublicKey
Verifying key type for this keypair.
Source§impl PartialEq for MlDsa44Ed25519Keypair
impl PartialEq for MlDsa44Ed25519Keypair
Source§impl RandomizedSigner<Signature> for MlDsa44Ed25519Keypair
impl RandomizedSigner<Signature> for MlDsa44Ed25519Keypair
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 MlDsa44Ed25519Keypair
impl Signer<Signature> for MlDsa44Ed25519Keypair
Auto Trait Implementations§
impl Forget for MlDsa44Ed25519Keypair
impl Freeze for MlDsa44Ed25519Keypairwhere
*const Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, 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<UTerm, B1>, B0>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>>>: Freeze,
[u8; 32]: Freeze,
impl Move for MlDsa44Ed25519Keypair
impl RefUnwindSafe for MlDsa44Ed25519Keypair
impl Send for MlDsa44Ed25519Keypair
impl Sync for MlDsa44Ed25519Keypair
impl Unpin for MlDsa44Ed25519Keypair
impl UnsafeUnpin for MlDsa44Ed25519Keypairwhere
*const Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, 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<UTerm, B1>, B0>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>, B0>>>: UnsafeUnpin,
[u8; 32]: UnsafeUnpin,
impl UnwindSafe for MlDsa44Ed25519Keypair
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