Struct ssh_key::private::Ed25519PrivateKey
source · pub struct Ed25519PrivateKey(_);Expand description
Ed25519 private key.
Implementations§
source§impl Ed25519PrivateKey
impl Ed25519PrivateKey
sourcepub fn random(rng: &mut impl CryptoRngCore) -> Self
Available on crate feature rand_core only.
pub fn random(rng: &mut impl CryptoRngCore) -> Self
rand_core only.Generate a random Ed25519 private key.
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Self
pub fn from_bytes(bytes: &[u8; 32]) -> Self
Parse Ed25519 private key from bytes.
Trait Implementations§
source§impl Clone for Ed25519PrivateKey
impl Clone for Ed25519PrivateKey
source§fn clone(&self) -> Ed25519PrivateKey
fn clone(&self) -> Ed25519PrivateKey
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 ConstantTimeEq for Ed25519PrivateKey
impl ConstantTimeEq for Ed25519PrivateKey
source§impl Debug for Ed25519PrivateKey
impl Debug for Ed25519PrivateKey
source§impl Drop for Ed25519PrivateKey
impl Drop for Ed25519PrivateKey
source§impl From<&Ed25519PrivateKey> for Ed25519PublicKey
Available on crate feature ed25519 only.
impl From<&Ed25519PrivateKey> for Ed25519PublicKey
Available on crate feature
ed25519 only.source§fn from(private: &Ed25519PrivateKey) -> Ed25519PublicKey
fn from(private: &Ed25519PrivateKey) -> Ed25519PublicKey
Converts to this type from the input type.
source§impl From<&Ed25519PrivateKey> for SigningKey
Available on crate feature ed25519 only.
impl From<&Ed25519PrivateKey> for SigningKey
Available on crate feature
ed25519 only.source§fn from(key: &Ed25519PrivateKey) -> SigningKey
fn from(key: &Ed25519PrivateKey) -> SigningKey
Converts to this type from the input type.
source§impl From<&SigningKey> for Ed25519PrivateKey
Available on crate feature ed25519 only.
impl From<&SigningKey> for Ed25519PrivateKey
Available on crate feature
ed25519 only.source§fn from(key: &SigningKey) -> Ed25519PrivateKey
fn from(key: &SigningKey) -> Ed25519PrivateKey
Converts to this type from the input type.
source§impl From<Ed25519PrivateKey> for Ed25519Keypair
Available on crate feature ed25519 only.
impl From<Ed25519PrivateKey> for Ed25519Keypair
Available on crate feature
ed25519 only.source§fn from(private: Ed25519PrivateKey) -> Ed25519Keypair
fn from(private: Ed25519PrivateKey) -> Ed25519Keypair
Converts to this type from the input type.
source§impl From<Ed25519PrivateKey> for Ed25519PublicKey
Available on crate feature ed25519 only.
impl From<Ed25519PrivateKey> for Ed25519PublicKey
Available on crate feature
ed25519 only.source§fn from(private: Ed25519PrivateKey) -> Ed25519PublicKey
fn from(private: Ed25519PrivateKey) -> Ed25519PublicKey
Converts to this type from the input type.
source§impl From<Ed25519PrivateKey> for SigningKey
Available on crate feature ed25519 only.
impl From<Ed25519PrivateKey> for SigningKey
Available on crate feature
ed25519 only.source§fn from(key: Ed25519PrivateKey) -> SigningKey
fn from(key: Ed25519PrivateKey) -> SigningKey
Converts to this type from the input type.
source§impl From<SigningKey> for Ed25519PrivateKey
Available on crate feature ed25519 only.
impl From<SigningKey> for Ed25519PrivateKey
Available on crate feature
ed25519 only.source§fn from(key: SigningKey) -> Ed25519PrivateKey
fn from(key: SigningKey) -> Ed25519PrivateKey
Converts to this type from the input type.