Struct clevis::ProvisionedData
source · pub struct ProvisionedData<const KEYBYTES: usize> {
pub encryption_key: EncryptionKey<KEYBYTES>,
pub signing_thumbprint: Box<str>,
pub meta: KeyMeta,
}Expand description
Data that is produced as a result of the provisioning (key generation) step.
Fields§
§encryption_key: EncryptionKey<KEYBYTES>Use this key to encrypt data
signing_thumbprint: Box<str>The thumbprint used for signing. Future keys can be requested using this thumbprint.
meta: KeyMetaMetadata required to regenerate an encryption key.
Both this metadata and a connection to the Tang server are needed to recover the key for use with encryption. This data can be stored in JSON form.
⚠️WARNING: Anybody who has access to both this metadata and the Tang server can recover the encryption keys. Treat this data with respect!
Auto Trait Implementations§
impl<const KEYBYTES: usize> RefUnwindSafe for ProvisionedData<KEYBYTES>
impl<const KEYBYTES: usize> Send for ProvisionedData<KEYBYTES>
impl<const KEYBYTES: usize> Sync for ProvisionedData<KEYBYTES>
impl<const KEYBYTES: usize> Unpin for ProvisionedData<KEYBYTES>
impl<const KEYBYTES: usize> UnwindSafe for ProvisionedData<KEYBYTES>
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