pub enum TpmKeyKind {
Rsa,
EcdsaP256,
Ed25519,
}Expand description
Algorithm of a key stored in the TPM. Determined by file suffix and
(for .privkey files) by ASN.1 autodetection of the inner DER.
Variants§
Rsa
PKCS#1 RSAPrivateKey DER. Filename ends .privkey. Compatible
with ndn-cxx tpm-file.
EcdsaP256
SEC1 ECPrivateKey DER for the NIST P-256 curve. Filename ends
.privkey. Compatible with ndn-cxx tpm-file.
Ed25519
PKCS#8 PrivateKeyInfo DER. Filename ends .privkey-ed25519.
Not loaded by ndn-cxx tpm-file; ndn-rs reads it via the
sentinel suffix. See module docs for the rationale.
Trait Implementations§
Source§impl Clone for TpmKeyKind
impl Clone for TpmKeyKind
Source§fn clone(&self) -> TpmKeyKind
fn clone(&self) -> TpmKeyKind
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 TpmKeyKind
impl Debug for TpmKeyKind
Source§impl PartialEq for TpmKeyKind
impl PartialEq for TpmKeyKind
impl Copy for TpmKeyKind
impl Eq for TpmKeyKind
impl StructuralPartialEq for TpmKeyKind
Auto Trait Implementations§
impl Freeze for TpmKeyKind
impl RefUnwindSafe for TpmKeyKind
impl Send for TpmKeyKind
impl Sync for TpmKeyKind
impl Unpin for TpmKeyKind
impl UnwindSafe for TpmKeyKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more