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: KeyMeta

Metadata 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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.