pub enum SignatureScheme {
Schnorr,
Ecdsa,
Ed25519,
Dilithium2,
Dilithium3,
Dilithium5,
SshEd25519,
SshDsa,
SshEcdsaP256,
SshEcdsaP384,
}Variants§
Implementations§
Source§impl SignatureScheme
impl SignatureScheme
pub fn keypair(&self) -> (SigningPrivateKey, SigningPublicKey)
pub fn keypair_opt( &self, comment: impl Into<String>, ) -> (SigningPrivateKey, SigningPublicKey)
pub fn keypair_using( &self, rng: &mut impl RandomNumberGenerator, comment: impl Into<String>, ) -> Result<(SigningPrivateKey, SigningPublicKey)>
Trait Implementations§
Source§impl Clone for SignatureScheme
impl Clone for SignatureScheme
Source§fn clone(&self) -> SignatureScheme
fn clone(&self) -> SignatureScheme
Returns a copy 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 SignatureScheme
impl Debug for SignatureScheme
Source§impl Default for SignatureScheme
impl Default for SignatureScheme
Source§fn default() -> SignatureScheme
fn default() -> SignatureScheme
Returns the “default value” for a type. Read more
Source§impl Hash for SignatureScheme
impl Hash for SignatureScheme
Source§impl PartialEq for SignatureScheme
impl PartialEq for SignatureScheme
impl Eq for SignatureScheme
impl StructuralPartialEq for SignatureScheme
Auto Trait Implementations§
impl Freeze for SignatureScheme
impl RefUnwindSafe for SignatureScheme
impl Send for SignatureScheme
impl Sync for SignatureScheme
impl Unpin for SignatureScheme
impl UnwindSafe for SignatureScheme
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