pub struct TpmSigningStorage { /* private fields */ }Implementations§
Source§impl TpmSigningStorage
impl TpmSigningStorage
pub fn new( app_name: &str, key_label: &str, access_policy: AccessPolicy, ) -> Result<Self, String>
pub fn sign(&self, _data: &[u8]) -> Result<Vec<u8>, String>
pub fn public_key(&self) -> Result<Vec<u8>, String>
pub fn list_keys(&self) -> Result<Vec<String>, String>
pub fn list_keys_for_app(_app_name: &str) -> Result<Vec<String>, String>
pub fn public_key_for_app( _app_name: &str, _key_label: &str, ) -> Result<Vec<u8>, String>
pub fn delete(_app_name: &str, _key_label: &str) -> Result<(), String>
pub fn key_exists(_app_name: &str, _key_label: &str) -> Result<bool, String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TpmSigningStorage
impl RefUnwindSafe for TpmSigningStorage
impl Send for TpmSigningStorage
impl Sync for TpmSigningStorage
impl Unpin for TpmSigningStorage
impl UnsafeUnpin for TpmSigningStorage
impl UnwindSafe for TpmSigningStorage
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