pub enum Secret {
Aes,
GenericSecret,
}Variants§
Implementations§
Source§impl Secret
impl Secret
pub fn generate( &self, session: &Session, id: AttrData, label: AttrData, attrs: Option<AttributeMap>, ) -> Result<ObjectHandle>
pub fn import( &self, session: &Session, id: AttrData, label: AttrData, key: Vec<u8>, attrs: Option<AttributeMap>, ) -> Result<ObjectHandle>
pub fn export(&self, session: &Session, object: ObjectHandle) -> Result<Vec<u8>>
pub fn wrap_key( &self, session: &Session, object: ObjectHandle, wrap_key_label: Option<&str>, wrap_mechanism: &Wrap, ) -> Result<Vec<u8>>
pub fn unwrap_key( &self, session: &Session, id: AttrData, label: AttrData, key: Vec<u8>, attrs: Option<AttributeMap>, wrap_key_label: Option<&str>, wrap_mechanism: &Wrap, ) -> Result<ObjectHandle>
Auto Trait Implementations§
impl Freeze for Secret
impl RefUnwindSafe for Secret
impl Send for Secret
impl Sync for Secret
impl Unpin for Secret
impl UnwindSafe for Secret
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