pub struct EcdsaP384SigningKey { /* private fields */ }Expand description
ECDSA P-384 private key for XMLDSig signing.
Implementations§
Source§impl EcdsaP384SigningKey
impl EcdsaP384SigningKey
Sourcepub fn from_sec1_pem(private_key_pem: &str) -> Result<Self, SigningKeyError>
pub fn from_sec1_pem(private_key_pem: &str) -> Result<Self, SigningKeyError>
Parse an unencrypted SEC1 EC PRIVATE KEY PEM block.
Sourcepub fn from_sec1_der(private_key_der: &[u8]) -> Result<Self, SigningKeyError>
pub fn from_sec1_der(private_key_der: &[u8]) -> Result<Self, SigningKeyError>
Parse unencrypted SEC1 ECPrivateKey DER.
Sourcepub fn from_pkcs8_pem(private_key_pem: &str) -> Result<Self, SigningKeyError>
pub fn from_pkcs8_pem(private_key_pem: &str) -> Result<Self, SigningKeyError>
Parse an unencrypted PKCS#8 PRIVATE KEY PEM block.
Sourcepub fn from_pkcs8_der(private_key_der: &[u8]) -> Result<Self, SigningKeyError>
pub fn from_pkcs8_der(private_key_der: &[u8]) -> Result<Self, SigningKeyError>
Parse unencrypted PKCS#8 private key DER.
Sourcepub fn from_pkcs8_encrypted_pem(
private_key_pem: &str,
password: impl AsRef<[u8]>,
) -> Result<Self, SigningKeyError>
pub fn from_pkcs8_encrypted_pem( private_key_pem: &str, password: impl AsRef<[u8]>, ) -> Result<Self, SigningKeyError>
Decrypt and parse a password-protected PKCS#8 ENCRYPTED PRIVATE KEY PEM block.
Sourcepub fn from_pkcs8_encrypted_der(
private_key_der: &[u8],
password: impl AsRef<[u8]>,
) -> Result<Self, SigningKeyError>
pub fn from_pkcs8_encrypted_der( private_key_der: &[u8], password: impl AsRef<[u8]>, ) -> Result<Self, SigningKeyError>
Decrypt and parse password-protected PKCS#8 DER.
Trait Implementations§
Source§impl SigningKey for EcdsaP384SigningKey
impl SigningKey for EcdsaP384SigningKey
Source§fn sign(
&self,
algorithm: SignatureAlgorithm,
canonical_signed_info: &[u8],
) -> Result<Vec<u8>, SigningKeyError>
fn sign( &self, algorithm: SignatureAlgorithm, canonical_signed_info: &[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,
canonical_signed_info: &[u8],
) -> Result<Vec<u8>, SigningKeyError>
fn sign_with_provider( &self, provider: &dyn CryptoProvider, algorithm: SignatureAlgorithm, canonical_signed_info: &[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.
Source§fn sign_with_provider_context(
&self,
provider: &dyn CryptoProvider,
algorithm: SignatureAlgorithm,
context: &SignatureContext,
data: &[u8],
) -> Result<Vec<u8>, SigningKeyError>
fn sign_with_provider_context( &self, provider: &dyn CryptoProvider, algorithm: SignatureAlgorithm, context: &SignatureContext, data: &[u8], ) -> Result<Vec<u8>, SigningKeyError>
Primitive hook preserving validated SignatureMethod context.
Auto Trait Implementations§
impl Freeze for EcdsaP384SigningKey
impl RefUnwindSafe for EcdsaP384SigningKey
impl Send for EcdsaP384SigningKey
impl Sync for EcdsaP384SigningKey
impl Unpin for EcdsaP384SigningKey
impl UnsafeUnpin for EcdsaP384SigningKey
impl UnwindSafe for EcdsaP384SigningKey
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