pub struct HmacVerificationKey { /* private fields */ }Expand description
Caller-owned HMAC verification key.
Policy-free VerifyingKey calls enforce crate::policy::HmacPolicy::default.
super::VerifyContext supplies its immutable operation policy through the
policy-aware hooks, so legacy truncation always requires an explicit opt-in.
Owned secret bytes are zeroized when the key is dropped.
Implementations§
Trait Implementations§
Source§impl Clone for HmacVerificationKey
impl Clone for HmacVerificationKey
Source§fn clone(&self) -> HmacVerificationKey
fn clone(&self) -> HmacVerificationKey
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 HmacVerificationKey
impl Debug for HmacVerificationKey
Source§impl VerifyingKey for HmacVerificationKey
impl VerifyingKey for HmacVerificationKey
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(
&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 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(
&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 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 HmacVerificationKey
impl RefUnwindSafe for HmacVerificationKey
impl Send for HmacVerificationKey
impl Sync for HmacVerificationKey
impl Unpin for HmacVerificationKey
impl UnsafeUnpin for HmacVerificationKey
impl UnwindSafe for HmacVerificationKey
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