Struct tss_esapi::structures::PublicRsaParameters
source · pub struct PublicRsaParameters { /* private fields */ }Expand description
Structure holding the RSA specific parameters.
Details
This corresponds to TPMS_RSA_PARMS
These rsa parameters are specific to the crate::structures::Public type.
Implementations§
source§impl PublicRsaParameters
impl PublicRsaParameters
sourcepub const fn new(
symmetric_definition_object: SymmetricDefinitionObject,
rsa_scheme: RsaScheme,
key_bits: RsaKeyBits,
exponent: RsaExponent
) -> Self
pub const fn new(
symmetric_definition_object: SymmetricDefinitionObject,
rsa_scheme: RsaScheme,
key_bits: RsaKeyBits,
exponent: RsaExponent
) -> Self
Function for creating new PublicRsaParameters structure
sourcepub const fn symmetric_definition_object(&self) -> SymmetricDefinitionObject
pub const fn symmetric_definition_object(&self) -> SymmetricDefinitionObject
Returns the SymmetricDefinitionObject.
sourcepub const fn rsa_scheme(&self) -> RsaScheme
pub const fn rsa_scheme(&self) -> RsaScheme
Returns the RsaScheme
sourcepub const fn key_bits(&self) -> RsaKeyBits
pub const fn key_bits(&self) -> RsaKeyBits
Returns the RsaKeyBits
sourcepub const fn exponent(&self) -> RsaExponent
pub const fn exponent(&self) -> RsaExponent
Returns the exponent in the form of a RsaExponent
sourcepub const fn builder() -> PublicRsaParametersBuilder
pub const fn builder() -> PublicRsaParametersBuilder
Get a builder for this structure
Trait Implementations§
source§impl Clone for PublicRsaParameters
impl Clone for PublicRsaParameters
source§fn clone(&self) -> PublicRsaParameters
fn clone(&self) -> PublicRsaParameters
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 PublicRsaParameters
impl Debug for PublicRsaParameters
source§impl From<PublicRsaParameters> for TPMS_RSA_PARMS
impl From<PublicRsaParameters> for TPMS_RSA_PARMS
source§fn from(public_rsa_parameters: PublicRsaParameters) -> Self
fn from(public_rsa_parameters: PublicRsaParameters) -> Self
Converts to this type from the input type.
source§impl PartialEq<PublicRsaParameters> for PublicRsaParameters
impl PartialEq<PublicRsaParameters> for PublicRsaParameters
source§fn eq(&self, other: &PublicRsaParameters) -> bool
fn eq(&self, other: &PublicRsaParameters) -> bool
This method tests for
self and other values to be equal, and is used
by ==.