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<RsaExponent> for RsaExponent
impl PartialEq<RsaExponent> 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 ==.