pub struct IgvmAttestRequestHelper { /* private fields */ }
Expand description
Helper struct to create IgvmAttestRequest
in raw bytes.
Implementations§
Source§impl IgvmAttestRequestHelper
impl IgvmAttestRequestHelper
Sourcepub fn prepare_key_release_request(
tee_type: TeeType,
rsa_exponent: &[u8],
rsa_modulus: &[u8],
host_time: i64,
attestation_vm_config: &AttestationVmConfig,
) -> Self
pub fn prepare_key_release_request( tee_type: TeeType, rsa_exponent: &[u8], rsa_modulus: &[u8], host_time: i64, attestation_vm_config: &AttestationVmConfig, ) -> Self
Prepare the data necessary for creating the KEY_RELEASE
request.
Sourcepub fn prepare_ak_cert_request(
tee_type: Option<TeeType>,
ak_pub_exponent: &[u8],
ak_pub_modulus: &[u8],
ek_pub_exponent: &[u8],
ek_pub_modulus: &[u8],
attestation_vm_config: &AttestationVmConfig,
guest_input: &[u8],
) -> Self
pub fn prepare_ak_cert_request( tee_type: Option<TeeType>, ak_pub_exponent: &[u8], ak_pub_modulus: &[u8], ek_pub_exponent: &[u8], ek_pub_modulus: &[u8], attestation_vm_config: &AttestationVmConfig, guest_input: &[u8], ) -> Self
Prepare the data necessary for creating the AK_CERT
request.
Sourcepub fn get_runtime_claims_hash(&self) -> &[u8; 64]
pub fn get_runtime_claims_hash(&self) -> &[u8; 64]
Return the runtime_claims_hash
.
Sourcepub fn set_request_type(&mut self, request_type: IgvmAttestRequestType)
pub fn set_request_type(&mut self, request_type: IgvmAttestRequestType)
Set the request_type
.
Auto Trait Implementations§
impl Freeze for IgvmAttestRequestHelper
impl RefUnwindSafe for IgvmAttestRequestHelper
impl Send for IgvmAttestRequestHelper
impl Sync for IgvmAttestRequestHelper
impl Unpin for IgvmAttestRequestHelper
impl UnwindSafe for IgvmAttestRequestHelper
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