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
sourceimpl 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
sourceimpl Clone for PublicRsaParameters
impl Clone for PublicRsaParameters
sourcefn clone(&self) -> PublicRsaParameters
fn clone(&self) -> PublicRsaParameters
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 PublicRsaParameters
impl Debug for PublicRsaParameters
sourceimpl From<PublicRsaParameters> for TPMS_RSA_PARMS
impl From<PublicRsaParameters> for TPMS_RSA_PARMS
sourcefn from(public_rsa_parameters: PublicRsaParameters) -> Self
fn from(public_rsa_parameters: PublicRsaParameters) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PublicRsaParameters> for PublicRsaParameters
impl PartialEq<PublicRsaParameters> for PublicRsaParameters
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &PublicRsaParameters) -> bool
fn ne(&self, other: &PublicRsaParameters) -> bool
This method tests for !=.
sourceimpl TryFrom<TPMS_RSA_PARMS> for PublicRsaParameters
impl TryFrom<TPMS_RSA_PARMS> for PublicRsaParameters
impl Copy for PublicRsaParameters
impl Eq for PublicRsaParameters
impl StructuralEq for PublicRsaParameters
impl StructuralPartialEq for PublicRsaParameters
Auto Trait Implementations
impl RefUnwindSafe for PublicRsaParameters
impl Send for PublicRsaParameters
impl Sync for PublicRsaParameters
impl Unpin for PublicRsaParameters
impl UnwindSafe for PublicRsaParameters
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