pub struct Ed25519SigningKey { /* private fields */ }Expand description
An Ed25519 signing key pair (backed by ring).
Implementations§
Source§impl Ed25519SigningKey
impl Ed25519SigningKey
Sourcepub fn from_key_der(key: &PrivateKeyDer<'_>) -> DnsSecResult<Self>
pub fn from_key_der(key: &PrivateKeyDer<'_>) -> DnsSecResult<Self>
Decode signing key pair from DER.
Sourcepub fn from_pkcs8(key: &PrivatePkcs8KeyDer<'_>) -> DnsSecResult<Self>
pub fn from_pkcs8(key: &PrivatePkcs8KeyDer<'_>) -> DnsSecResult<Self>
Decode signing key pair from DER-encoded PKCS#8 bytes.
Sourcepub fn from_ed25519(inner: Ed25519KeyPair) -> Self
pub fn from_ed25519(inner: Ed25519KeyPair) -> Self
Creates an Ed25519 keypair.
Sourcepub fn generate_pkcs8() -> DnsSecResult<PrivatePkcs8KeyDer<'static>>
pub fn generate_pkcs8() -> DnsSecResult<PrivatePkcs8KeyDer<'static>>
Generate signing key pair and return the DER-encoded PKCS#8 bytes.
Trait Implementations§
Source§impl SigningKey for Ed25519SigningKey
impl SigningKey for Ed25519SigningKey
Source§fn to_public_key(&self) -> DnsSecResult<PublicKeyBuf>
fn to_public_key(&self) -> DnsSecResult<PublicKeyBuf>
Returns a
PublicKeyBuf for this SigningKey.Auto Trait Implementations§
impl Freeze for Ed25519SigningKey
impl RefUnwindSafe for Ed25519SigningKey
impl Send for Ed25519SigningKey
impl Sync for Ed25519SigningKey
impl Unpin for Ed25519SigningKey
impl UnwindSafe for Ed25519SigningKey
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