Struct tss_esapi::abstraction::transient::MakeCredParams
source · pub struct MakeCredParams {
pub name: Vec<u8>,
pub public: Vec<u8>,
pub attesting_key_pub: PublicKey,
}
Expand description
Wrapper for the parameters needed by MakeCredential
The 3rd party requesting proof that the key is indeed backed
by a TPM would perform a MakeCredential and would thus require
name
and attesting_key_pub
as inputs for that operation.
public
is not strictly needed, however it is returned as a
convenience block of data. Since the MakeCredential operation
bakes into the encrypted credential the identity of the key to
be attested via its name
, the correctness of the name
must
be verifiable by the said 3rd party. public
bridges this gap:
- it includes all the public parameters of the attested key
- can be hashed (in its marshaled form) with the name hash
(found by unmarshaling it) to obtain
name
Fields§
§name: Vec<u8>
TPM name of the object being attested
public: Vec<u8>
Encoding of the public parameters of the object whose name will be included in the credential computations
attesting_key_pub: PublicKey
Public part of the key used to protect the credential
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MakeCredParams
impl RefUnwindSafe for MakeCredParams
impl Send for MakeCredParams
impl Sync for MakeCredParams
impl Unpin for MakeCredParams
impl UnwindSafe for MakeCredParams
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