pub struct RsaKeyPolicy {
pub minimum_modulus_bits: usize,
}Expand description
RSA strength and structural requirements for outbound cryptographic operations.
Fields§
§minimum_modulus_bits: usizeMinimum mathematical RSA modulus bit length accepted for new output.
Implementations§
Source§impl RsaKeyPolicy
impl RsaKeyPolicy
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 RsaKeyPolicy
impl Clone for RsaKeyPolicy
Source§fn clone(&self) -> RsaKeyPolicy
fn clone(&self) -> RsaKeyPolicy
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 RsaKeyPolicy
Source§impl Debug for RsaKeyPolicy
impl Debug for RsaKeyPolicy
Source§impl Default for RsaKeyPolicy
Available on crate features xmldsig or xmlenc only.
impl Default for RsaKeyPolicy
Available on crate features
xmldsig or xmlenc only.impl Eq for RsaKeyPolicy
Source§impl PartialEq for RsaKeyPolicy
impl PartialEq for RsaKeyPolicy
impl StructuralPartialEq for RsaKeyPolicy
Auto Trait Implementations§
impl Freeze for RsaKeyPolicy
impl RefUnwindSafe for RsaKeyPolicy
impl Send for RsaKeyPolicy
impl Sync for RsaKeyPolicy
impl Unpin for RsaKeyPolicy
impl UnsafeUnpin for RsaKeyPolicy
impl UnwindSafe for RsaKeyPolicy
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