pub struct HardwareKeystore { /* private fields */ }Implementations§
Source§impl HardwareKeystore
impl HardwareKeystore
Sourcepub async fn new() -> Result<Self, HardwareError>
pub async fn new() -> Result<Self, HardwareError>
Initialize connection to the TPM (or CNG on Windows)
Sourcepub async fn seal_identity(
&self,
seed: &[u8; 32],
) -> Result<Vec<u8>, HardwareError>
pub async fn seal_identity( &self, seed: &[u8; 32], ) -> Result<Vec<u8>, HardwareError>
Helper to seed identity for external persistence (VEX-persist)
Sourcepub async fn get_identity(
&self,
encrypted_blob: &[u8],
) -> Result<AgentIdentity, HardwareError>
pub async fn get_identity( &self, encrypted_blob: &[u8], ) -> Result<AgentIdentity, HardwareError>
Get the Unsealed Identity for real-time signing from a persisted hardware blob
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HardwareKeystore
impl !RefUnwindSafe for HardwareKeystore
impl Send for HardwareKeystore
impl Sync for HardwareKeystore
impl Unpin for HardwareKeystore
impl UnsafeUnpin for HardwareKeystore
impl !UnwindSafe for HardwareKeystore
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