pub struct RsaSigningKey { /* private fields */ }Expand description
RSA PKCS#1 v1.5 private key for XMLDSig signing.
Implementations§
Source§impl RsaSigningKey
impl RsaSigningKey
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.
Trait Implementations§
Source§impl SigningKey for RsaSigningKey
impl SigningKey for RsaSigningKey
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.Auto Trait Implementations§
impl Freeze for RsaSigningKey
impl RefUnwindSafe for RsaSigningKey
impl Send for RsaSigningKey
impl Sync for RsaSigningKey
impl Unpin for RsaSigningKey
impl UnsafeUnpin for RsaSigningKey
impl UnwindSafe for RsaSigningKey
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