pub enum Capability {
Decrypt,
Sign,
Restrict,
Unknown,
}Expand description
Key capability.
Defines for which usages is this key intended. All keys need to be either Decrypt or Sign
keys. Some keys can also be Restricted keys.
Keys that are both Decrypt and Sign are called storage keys and are used to load other
keys in the TPM. Restricted decryption keys will not reveal the plaintext to non-TPM code.
Restricted signing keys will sign only digests produced in the TPM. They are used mostly to sign data produced by the TPM, e.g. the attestation data.
Variants§
Decrypt
Allows decryption using this key.
Sign
Allows signing using this key.
Restrict
This key is restricted.
Unknown
This is an unknown, unsupported capability.
Trait Implementations§
Source§impl Debug for Capability
impl Debug for Capability
Source§impl<'de> Deserialize<'de> for Capability
impl<'de> Deserialize<'de> for Capability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Capability
impl PartialEq for Capability
Source§impl Serialize for Capability
impl Serialize for Capability
impl StructuralPartialEq for Capability
Auto Trait Implementations§
impl Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnwindSafe for Capability
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