pub struct EcdsaSigningKey { /* private fields */ }Expand description
An ECDSA signing key pair (backed by ring).
Implementations§
Source§impl EcdsaSigningKey
impl EcdsaSigningKey
Sourcepub fn from_key_der(
key: &PrivateKeyDer<'_>,
algorithm: Algorithm,
) -> DnsSecResult<Self>
pub fn from_key_der( key: &PrivateKeyDer<'_>, algorithm: Algorithm, ) -> DnsSecResult<Self>
Decode signing key pair from DER.
Errors unless the given algorithm is one of the following:
Sourcepub fn from_pkcs8(
key: &PrivatePkcs8KeyDer<'_>,
algorithm: Algorithm,
) -> DnsSecResult<Self>
pub fn from_pkcs8( key: &PrivatePkcs8KeyDer<'_>, algorithm: Algorithm, ) -> DnsSecResult<Self>
Decode signing key pair from DER-encoded PKCS#8 bytes.
Errors unless the given algorithm is one of the following:
Sourcepub fn from_ecdsa(inner: EcdsaKeyPair, algorithm: Algorithm) -> Self
pub fn from_ecdsa(inner: EcdsaKeyPair, algorithm: Algorithm) -> Self
Creates an ECDSA key pair with ring.
Sourcepub fn generate_pkcs8(
algorithm: Algorithm,
) -> DnsSecResult<PrivatePkcs8KeyDer<'static>>
pub fn generate_pkcs8( algorithm: Algorithm, ) -> DnsSecResult<PrivatePkcs8KeyDer<'static>>
Generate signing key pair and return the DER-encoded PKCS#8 bytes.
Errors unless the given algorithm is one of the following:
Trait Implementations§
Source§impl SigningKey for EcdsaSigningKey
impl SigningKey for EcdsaSigningKey
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 EcdsaSigningKey
impl RefUnwindSafe for EcdsaSigningKey
impl Send for EcdsaSigningKey
impl Sync for EcdsaSigningKey
impl Unpin for EcdsaSigningKey
impl UnwindSafe for EcdsaSigningKey
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