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