pub struct Firmware(/* private fields */);Implementations§
Source§impl Firmware
impl Firmware
Sourcepub fn platform_reset(&mut self) -> Result<(), Indeterminate<Error>>
pub fn platform_reset(&mut self) -> Result<(), Indeterminate<Error>>
Reset the platform persistent state.
Sourcepub fn platform_status(&mut self) -> Result<Status, Indeterminate<Error>>
pub fn platform_status(&mut self) -> Result<Status, Indeterminate<Error>>
Query the platform status.
Sourcepub fn pek_generate(&mut self) -> Result<(), Indeterminate<Error>>
pub fn pek_generate(&mut self) -> Result<(), Indeterminate<Error>>
Generate a new Platform Encryption Key (PEK).
Sourcepub fn pek_csr(&mut self) -> Result<Certificate, Indeterminate<Error>>
pub fn pek_csr(&mut self) -> Result<Certificate, Indeterminate<Error>>
Request a signature for the PEK.
Sourcepub fn pdh_generate(&mut self) -> Result<(), Indeterminate<Error>>
pub fn pdh_generate(&mut self) -> Result<(), Indeterminate<Error>>
Generate a new Platform Diffie-Hellman (PDH) key pair.
Sourcepub fn pdh_cert_export(&mut self) -> Result<Chain, Indeterminate<Error>>
pub fn pdh_cert_export(&mut self) -> Result<Chain, Indeterminate<Error>>
Export the CSV certificate chain.
Sourcepub fn pek_cert_import(
&mut self,
pek: &Certificate,
oca: &Certificate,
) -> Result<(), Indeterminate<Error>>
pub fn pek_cert_import( &mut self, pek: &Certificate, oca: &Certificate, ) -> Result<(), Indeterminate<Error>>
Take ownership of the CSV platform.
Sourcepub fn get_identifier(&mut self) -> Result<Identifier, Indeterminate<Error>>
pub fn get_identifier(&mut self) -> Result<Identifier, Indeterminate<Error>>
Get the unique CPU identifier.
This is especially helpful for sending HYGON an HTTP request to fetch the signed CEK certificate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Firmware
impl RefUnwindSafe for Firmware
impl Send for Firmware
impl Sync for Firmware
impl Unpin for Firmware
impl UnsafeUnpin for Firmware
impl UnwindSafe for Firmware
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