pub struct TpmStorage { /* private fields */ }Implementations§
Source§impl TpmStorage
impl TpmStorage
pub fn new( app_name: &str, key_label: &str, access_policy: AccessPolicy, ) -> Result<Self, String>
pub fn delete(_app_name: &str, _key_label: &str) -> Result<(), String>
pub fn encrypt(&self, _plaintext: &[u8]) -> Result<Vec<u8>, String>
pub fn decrypt(&self, _ciphertext: &[u8]) -> Result<Vec<u8>, String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TpmStorage
impl RefUnwindSafe for TpmStorage
impl Send for TpmStorage
impl Sync for TpmStorage
impl Unpin for TpmStorage
impl UnsafeUnpin for TpmStorage
impl UnwindSafe for TpmStorage
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