Struct tss_esapi::structures::RsaSignature
source · pub struct RsaSignature { /* private fields */ }
Expand description
Type holding RSA signature information.
For more information about the contents of signature
see Annex B
in the Architecture spec.
Implementations§
source§impl RsaSignature
impl RsaSignature
sourcepub fn create(
hashing_algorithm: HashingAlgorithm,
signature: PublicKeyRsa
) -> Result<Self>
pub fn create( hashing_algorithm: HashingAlgorithm, signature: PublicKeyRsa ) -> Result<Self>
sourcepub const fn hashing_algorithm(&self) -> HashingAlgorithm
pub const fn hashing_algorithm(&self) -> HashingAlgorithm
Returns the hashing algorithm
sourcepub const fn signature(&self) -> &PublicKeyRsa
pub const fn signature(&self) -> &PublicKeyRsa
Returns the signature
Trait Implementations§
source§impl Clone for RsaSignature
impl Clone for RsaSignature
source§fn clone(&self) -> RsaSignature
fn clone(&self) -> RsaSignature
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 RsaSignature
impl Debug for RsaSignature
source§impl From<RsaSignature> for TPMS_SIGNATURE_RSA
impl From<RsaSignature> for TPMS_SIGNATURE_RSA
source§fn from(rsa_signature: RsaSignature) -> Self
fn from(rsa_signature: RsaSignature) -> Self
Converts to this type from the input type.
source§impl PartialEq for RsaSignature
impl PartialEq for RsaSignature
source§fn eq(&self, other: &RsaSignature) -> bool
fn eq(&self, other: &RsaSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<TPMS_SIGNATURE_RSA> for RsaSignature
impl TryFrom<TPMS_SIGNATURE_RSA> for RsaSignature
impl Eq for RsaSignature
impl StructuralPartialEq for RsaSignature
Auto Trait Implementations§
impl Freeze for RsaSignature
impl RefUnwindSafe for RsaSignature
impl Send for RsaSignature
impl Sync for RsaSignature
impl Unpin for RsaSignature
impl UnwindSafe for RsaSignature
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