pub struct HmacSigningKey { /* private fields */ }Expand description
Symmetric key for XMLDSig HMAC signing.
Owned secret bytes are zeroized when the key is dropped.
Implementations§
Trait Implementations§
Source§impl SigningKey for HmacSigningKey
impl SigningKey for HmacSigningKey
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 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 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
Auto Trait Implementations§
impl Freeze for HmacSigningKey
impl RefUnwindSafe for HmacSigningKey
impl Send for HmacSigningKey
impl Sync for HmacSigningKey
impl Unpin for HmacSigningKey
impl UnsafeUnpin for HmacSigningKey
impl UnwindSafe for HmacSigningKey
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