pub struct HmacSha1VerificationKey { /* private fields */ }Expand description
Caller-owned HMAC-SHA1 verification key.
Implementations§
Source§impl HmacSha1VerificationKey
impl HmacSha1VerificationKey
Sourcepub fn new(secret: impl Into<Vec<u8>>) -> Result<Self, KeyResolutionError>
pub fn new(secret: impl Into<Vec<u8>>) -> Result<Self, KeyResolutionError>
Construct a key from non-empty secret bytes.
Sourcepub fn with_output_length_bits(
self,
output_length_bits: u16,
) -> Result<Self, KeyResolutionError>
pub fn with_output_length_bits( self, output_length_bits: u16, ) -> Result<Self, KeyResolutionError>
Bind this key to an XMLDSig HMAC output length in bits.
Trait Implementations§
Source§impl Clone for HmacSha1VerificationKey
impl Clone for HmacSha1VerificationKey
Source§fn clone(&self) -> HmacSha1VerificationKey
fn clone(&self) -> HmacSha1VerificationKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HmacSha1VerificationKey
impl Debug for HmacSha1VerificationKey
Source§impl VerifyingKey for HmacSha1VerificationKey
impl VerifyingKey for HmacSha1VerificationKey
Source§fn validate_signature_value(
&self,
algorithm: SignatureAlgorithm,
signature_value: &[u8],
) -> Result<bool, DsigError>
fn validate_signature_value( &self, algorithm: SignatureAlgorithm, signature_value: &[u8], ) -> Result<bool, DsigError>
Check that
signature_value has the wire framing required by the
declared algorithm and this key before provider dispatch. Read moreSource§fn verify(
&self,
algorithm: SignatureAlgorithm,
signed_data: &[u8],
signature_value: &[u8],
) -> Result<bool, DsigError>
fn verify( &self, algorithm: SignatureAlgorithm, signed_data: &[u8], signature_value: &[u8], ) -> Result<bool, DsigError>
Verify
signature_value over signed_data with the declared algorithm.Source§fn validate_policy(&self, _policy: &VerificationPolicy) -> Result<(), DsigError>
fn validate_policy(&self, _policy: &VerificationPolicy) -> Result<(), DsigError>
Validate this key against the operation’s immutable trust policy. Read more
Source§fn validate_signature_value_with_policy(
&self,
policy: &VerificationPolicy,
algorithm: SignatureAlgorithm,
signature_value: &[u8],
) -> Result<bool, DsigError>
fn validate_signature_value_with_policy( &self, policy: &VerificationPolicy, algorithm: SignatureAlgorithm, signature_value: &[u8], ) -> Result<bool, DsigError>
Validate wire framing under the operation’s immutable compatibility policy. Read more
Source§fn verify_with_policy(
&self,
policy: &VerificationPolicy,
algorithm: SignatureAlgorithm,
signed_data: &[u8],
signature_value: &[u8],
) -> Result<bool, DsigError>
fn verify_with_policy( &self, policy: &VerificationPolicy, algorithm: SignatureAlgorithm, signed_data: &[u8], signature_value: &[u8], ) -> Result<bool, DsigError>
Verify after applying operation-scoped compatibility semantics. Read more
Auto Trait Implementations§
impl Freeze for HmacSha1VerificationKey
impl RefUnwindSafe for HmacSha1VerificationKey
impl Send for HmacSha1VerificationKey
impl Sync for HmacSha1VerificationKey
impl Unpin for HmacSha1VerificationKey
impl UnsafeUnpin for HmacSha1VerificationKey
impl UnwindSafe for HmacSha1VerificationKey
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