pub struct TpmRsaExternalKey {
pub n: Tpm2bPublicKeyRsa,
pub e: u32,
pub key_bits: u16,
}Expand description
RSA public key parameters.
Fields§
§n: Tpm2bPublicKeyRsa§e: u32§key_bits: u16Trait Implementations§
Source§impl Clone for TpmRsaExternalKey
impl Clone for TpmRsaExternalKey
Source§fn clone(&self) -> TpmRsaExternalKey
fn clone(&self) -> TpmRsaExternalKey
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 TpmRsaExternalKey
impl Debug for TpmRsaExternalKey
Source§impl TpmExternalKey for TpmRsaExternalKey
impl TpmExternalKey for TpmRsaExternalKey
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 TpmRsaExternalKey
impl TryFrom<&TpmtPublic> for TpmRsaExternalKey
Source§type Error = TpmCryptoError
type Error = TpmCryptoError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for TpmRsaExternalKey
impl RefUnwindSafe for TpmRsaExternalKey
impl Send for TpmRsaExternalKey
impl Sync for TpmRsaExternalKey
impl Unpin for TpmRsaExternalKey
impl UnwindSafe for TpmRsaExternalKey
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