pub struct HmacPolicy {
pub minimum_key_bits: usize,
pub minimum_output_bits: usize,
}Expand description
HMAC key-strength and truncation requirements shared by signing and verification.
Fields§
§minimum_key_bits: usizeMinimum caller-owned secret length in bits.
minimum_output_bits: usizeMinimum emitted or accepted MAC length in bits.
Trait Implementations§
Source§impl Clone for HmacPolicy
impl Clone for HmacPolicy
Source§fn clone(&self) -> HmacPolicy
fn clone(&self) -> HmacPolicy
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 moreimpl Copy for HmacPolicy
Source§impl Debug for HmacPolicy
impl Debug for HmacPolicy
Source§impl Default for HmacPolicy
Available on crate feature xmldsig only.
impl Default for HmacPolicy
Available on crate feature
xmldsig only.impl Eq for HmacPolicy
Source§impl PartialEq for HmacPolicy
impl PartialEq for HmacPolicy
impl StructuralPartialEq for HmacPolicy
Auto Trait Implementations§
impl Freeze for HmacPolicy
impl RefUnwindSafe for HmacPolicy
impl Send for HmacPolicy
impl Sync for HmacPolicy
impl Unpin for HmacPolicy
impl UnsafeUnpin for HmacPolicy
impl UnwindSafe for HmacPolicy
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