pub struct DsaKeyPolicy {
pub minimum_modulus_bits: usize,
}Expand description
DSA strength requirements for legacy signature verification.
Fields§
§minimum_modulus_bits: usizeMinimum prime-modulus width accepted for DSA verification.
Implementations§
Source§impl DsaKeyPolicy
impl DsaKeyPolicy
Sourcepub fn validate(&self) -> Result<(), PolicyViolation>
pub fn validate(&self) -> Result<(), PolicyViolation>
Validate the configured minimum against the implementation ceiling.
Trait Implementations§
Source§impl Clone for DsaKeyPolicy
impl Clone for DsaKeyPolicy
Source§fn clone(&self) -> DsaKeyPolicy
fn clone(&self) -> DsaKeyPolicy
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 DsaKeyPolicy
Source§impl Debug for DsaKeyPolicy
impl Debug for DsaKeyPolicy
Source§impl Default for DsaKeyPolicy
Available on crate feature xmldsig only.
impl Default for DsaKeyPolicy
Available on crate feature
xmldsig only.impl Eq for DsaKeyPolicy
Source§impl PartialEq for DsaKeyPolicy
impl PartialEq for DsaKeyPolicy
impl StructuralPartialEq for DsaKeyPolicy
Auto Trait Implementations§
impl Freeze for DsaKeyPolicy
impl RefUnwindSafe for DsaKeyPolicy
impl Send for DsaKeyPolicy
impl Sync for DsaKeyPolicy
impl Unpin for DsaKeyPolicy
impl UnsafeUnpin for DsaKeyPolicy
impl UnwindSafe for DsaKeyPolicy
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