pub struct TpmEccExternalKey {
pub curve: TpmEllipticCurve,
pub x: Tpm2bEccParameter,
pub y: Tpm2bEccParameter,
}Expand description
ECC public key parameters.
Fields§
§curve: TpmEllipticCurve§x: Tpm2bEccParameter§y: Tpm2bEccParameterTrait Implementations§
Source§impl Clone for TpmEccExternalKey
impl Clone for TpmEccExternalKey
Source§fn clone(&self) -> TpmEccExternalKey
fn clone(&self) -> TpmEccExternalKey
Returns a duplicate 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 TpmEccExternalKey
impl Debug for TpmEccExternalKey
Source§impl TpmExternalKey for TpmEccExternalKey
impl TpmExternalKey for TpmEccExternalKey
Source§fn from_der(bytes: &[u8]) -> Result<(Self, Vec<u8>), TpmCryptoError>
fn from_der(bytes: &[u8]) -> Result<(Self, Vec<u8>), TpmCryptoError>
Parses a DER-encoded private key. Read more
Source§fn to_public(
&self,
hash_alg: TpmAlgId,
object_attributes: TpmaObject,
symmetric: TpmtSymDefObject,
) -> TpmtPublic
fn to_public( &self, hash_alg: TpmAlgId, object_attributes: TpmaObject, symmetric: TpmtSymDefObject, ) -> TpmtPublic
Converts the public key to a
TpmtPublic structure.Source§impl TryFrom<&TpmtPublic> for TpmEccExternalKey
impl TryFrom<&TpmtPublic> for TpmEccExternalKey
Source§type Error = TpmCryptoError
type Error = TpmCryptoError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for TpmEccExternalKey
impl RefUnwindSafe for TpmEccExternalKey
impl Send for TpmEccExternalKey
impl Sync for TpmEccExternalKey
impl Unpin for TpmEccExternalKey
impl UnwindSafe for TpmEccExternalKey
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