#[repr(C)]pub struct TeeInfoV1 {
pub user_pubkey_digest: [u8; 32],
pub vm_id: [u8; 16],
pub vm_version: [u8; 16],
pub report_data: [u8; 64],
pub mnonce: [u8; 16],
pub measure: [u8; 32],
pub policy: GuestPolicy,
pub sig_usage: u32,
pub sig_algo: u32,
pub anonce: u32,
pub sig: Signature,
}Expand description
Data provieded by the guest owner for requesting an attestation report from the HYGON Secure Processor.
Fields§
§user_pubkey_digest: [u8; 32]Pubkey digest of the session used to secure communication between user/hypervisor and PSP.
vm_id: [u8; 16]The identifier of the VM custommized by the guest owner.
vm_version: [u8; 16]The version info of the VM customized by the guest owner.
report_data: [u8; 64]The challenge data for the attestation.
mnonce: [u8; 16]The random nonce generated by user to protect struct TeeInfoSigner.
measure: [u8; 32]The launch digest of the VM.
policy: GuestPolicyThe running policy of the VM.
sig_usage: u32The usage of the signature.
sig_algo: u32The algorithm of the signature.
anonce: u32The random nonce generated by firmware to tweak the attestation report.
sig: SignatureThe signature for the fields: user_pubkey_digest, vm_id, vm_version, report_data, mnonce, measure, policy,
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TeeInfoV1
impl<'de> Deserialize<'de> for TeeInfoV1
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
impl Eq for TeeInfoV1
impl StructuralPartialEq for TeeInfoV1
Auto Trait Implementations§
impl Freeze for TeeInfoV1
impl RefUnwindSafe for TeeInfoV1
impl Send for TeeInfoV1
impl Sync for TeeInfoV1
impl Unpin for TeeInfoV1
impl UnsafeUnpin for TeeInfoV1
impl UnwindSafe for TeeInfoV1
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