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 for PublicRsaParameters
impl PartialEq 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 ==
.source§impl TryFrom<TPMS_RSA_PARMS> for PublicRsaParameters
impl TryFrom<TPMS_RSA_PARMS> for PublicRsaParameters
impl Copy for PublicRsaParameters
impl Eq for PublicRsaParameters
impl StructuralPartialEq for PublicRsaParameters
Auto Trait Implementations§
impl Freeze for PublicRsaParameters
impl RefUnwindSafe for PublicRsaParameters
impl Send for PublicRsaParameters
impl Sync for PublicRsaParameters
impl Unpin for PublicRsaParameters
impl UnwindSafe for PublicRsaParameters
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