Struct tss_esapi::structures::RsaExponent
source · [−]pub struct RsaExponent { /* private fields */ }Expand description
Structure used to hold the value of a RSA exponent
Implementations
sourceimpl RsaExponent
impl RsaExponent
sourcepub const ZERO_EXPONENT: Self = RsaExponent { value: 0 }
pub const ZERO_EXPONENT: Self = RsaExponent { value: 0 }
Empty exponent (internal value is 0), which is treated by TPMs as a shorthand for the default value (2^16 + 1).
sourcepub fn is_valid(_: u32) -> bool
👎 Deprecated since 7.0.1: TPMs are only mandated to support 0 as an exponent, with support for and checking of other values being done differently by each manufacturer. See discussion here: https://github.com/parallaxsecond/rust-tss-esapi/pull/332
pub fn is_valid(_: u32) -> bool
TPMs are only mandated to support 0 as an exponent, with support for and checking of other values being done differently by each manufacturer. See discussion here: https://github.com/parallaxsecond/rust-tss-esapi/pull/332
No-op. Does not check whether the value is a valid exponent for RSA.
Trait Implementations
sourceimpl Clone for RsaExponent
impl Clone for RsaExponent
sourcefn clone(&self) -> RsaExponent
fn clone(&self) -> RsaExponent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RsaExponent
impl Debug for RsaExponent
sourceimpl Default for RsaExponent
impl Default for RsaExponent
sourcefn default() -> RsaExponent
fn default() -> RsaExponent
Returns the “default value” for a type. Read more
sourceimpl From<RsaExponent> for UINT32
impl From<RsaExponent> for UINT32
sourcefn from(rsa_exponent: RsaExponent) -> Self
fn from(rsa_exponent: RsaExponent) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<RsaExponent> for RsaExponent
impl PartialEq<RsaExponent> for RsaExponent
sourcefn eq(&self, other: &RsaExponent) -> bool
fn eq(&self, other: &RsaExponent) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RsaExponent) -> bool
fn ne(&self, other: &RsaExponent) -> bool
This method tests for !=.
sourceimpl TryFrom<u32> for RsaExponent
impl TryFrom<u32> for RsaExponent
impl Copy for RsaExponent
impl Eq for RsaExponent
impl StructuralEq for RsaExponent
impl StructuralPartialEq for RsaExponent
Auto Trait Implementations
impl RefUnwindSafe for RsaExponent
impl Send for RsaExponent
impl Sync for RsaExponent
impl Unpin for RsaExponent
impl UnwindSafe for RsaExponent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more