pub struct EdDsaSigningKey(/* private fields */);Expand description
Opaque EdDSA private key. Private bytes are zeroized by the primitive on drop.
Implementations§
Source§impl EdDsaSigningKey
impl EdDsaSigningKey
Sourcepub fn from_pkcs8_der(
algorithm: SignatureAlgorithm,
der: &[u8],
) -> Result<Self, SigningKeyError>
pub fn from_pkcs8_der( algorithm: SignatureAlgorithm, der: &[u8], ) -> Result<Self, SigningKeyError>
Import a strict RFC 8410 PKCS#8 key for the explicitly selected algorithm.
Sourcepub fn to_pkcs8_der(&self) -> Result<SecretDocument, SigningKeyError>
pub fn to_pkcs8_der(&self) -> Result<SecretDocument, SigningKeyError>
Export private PKCS#8 DER in a zeroizing secret document.
Trait Implementations§
Source§impl SigningKey for EdDsaSigningKey
impl SigningKey for EdDsaSigningKey
Source§fn sign_with_provider_context(
&self,
provider: &dyn CryptoProvider,
algorithm: SignatureAlgorithm,
context: &SignatureContext,
message: &[u8],
) -> Result<Vec<u8>, SigningKeyError>
fn sign_with_provider_context( &self, provider: &dyn CryptoProvider, algorithm: SignatureAlgorithm, context: &SignatureContext, message: &[u8], ) -> Result<Vec<u8>, SigningKeyError>
Primitive hook preserving validated SignatureMethod context.
Source§fn sign(
&self,
algorithm: SignatureAlgorithm,
message: &[u8],
) -> Result<Vec<u8>, SigningKeyError>
fn sign( &self, algorithm: SignatureAlgorithm, message: &[u8], ) -> Result<Vec<u8>, SigningKeyError>
Sign canonicalized
<SignedInfo> bytes for the declared XMLDSig method.Source§fn sign_with_provider(
&self,
_provider: &dyn CryptoProvider,
algorithm: SignatureAlgorithm,
message: &[u8],
) -> Result<Vec<u8>, SigningKeyError>
fn sign_with_provider( &self, _provider: &dyn CryptoProvider, algorithm: SignatureAlgorithm, message: &[u8], ) -> Result<Vec<u8>, SigningKeyError>
Sign while sourcing any primitive randomness from the selected provider. Read more
Source§fn public_key_info(&self) -> Result<SigningPublicKeyInfo, SigningKeyError>
fn public_key_info(&self) -> Result<SigningPublicKeyInfo, SigningKeyError>
Return structured public key material corresponding to this signing key.
Source§fn provider_name(&self) -> Option<&'static str>
fn provider_name(&self) -> Option<&'static str>
Native engine binding, if this handle must not run under another provider.
Auto Trait Implementations§
impl Freeze for EdDsaSigningKey
impl RefUnwindSafe for EdDsaSigningKey
impl Send for EdDsaSigningKey
impl Sync for EdDsaSigningKey
impl Unpin for EdDsaSigningKey
impl UnsafeUnpin for EdDsaSigningKey
impl UnwindSafe for EdDsaSigningKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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