Struct tss_esapi::structures::RsaExponent
source · pub struct RsaExponent { /* private fields */ }
Expand description
Structure used to hold the value of a RSA exponent
Implementations§
source§impl RsaExponent
impl RsaExponent
sourcepub const ZERO_EXPONENT: Self = _
pub const ZERO_EXPONENT: Self = _
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
No-op. Does not check whether the value is a valid exponent for RSA.
Trait Implementations§
source§impl Clone for RsaExponent
impl Clone for RsaExponent
source§fn clone(&self) -> RsaExponent
fn clone(&self) -> RsaExponent
Returns a copy of the value. Read more
1.0.0 · 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 RsaExponent
impl Debug for RsaExponent
source§impl Default for RsaExponent
impl Default for RsaExponent
source§fn default() -> RsaExponent
fn default() -> RsaExponent
Returns the “default value” for a type. Read more
source§impl From<RsaExponent> for UINT32
impl From<RsaExponent> for UINT32
source§fn from(rsa_exponent: RsaExponent) -> Self
fn from(rsa_exponent: RsaExponent) -> Self
Converts to this type from the input type.
source§impl PartialEq for RsaExponent
impl PartialEq for RsaExponent
source§fn 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 ==
.source§impl TryFrom<u32> for RsaExponent
impl TryFrom<u32> for RsaExponent
impl Copy for RsaExponent
impl Eq for RsaExponent
impl StructuralPartialEq for RsaExponent
Auto Trait Implementations§
impl Freeze for RsaExponent
impl RefUnwindSafe for RsaExponent
impl Send for RsaExponent
impl Sync for RsaExponent
impl Unpin for RsaExponent
impl UnwindSafe for RsaExponent
Blanket Implementations§
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