pub struct EncryptionManager { /* private fields */ }Implementations§
Source§impl EncryptionManager
impl EncryptionManager
pub fn new(algorithm: EncryptionAlgorithm) -> Result<Self, SecurityError>
pub fn encrypt( &self, _data: &[u8], _key: &[u8], _nonce: Option<&[u8]>, ) -> Result<Vec<u8>, SecurityError>
pub fn decrypt( &self, _data: &[u8], _key: &[u8], _nonce: Option<&[u8]>, ) -> Result<Vec<u8>, SecurityError>
pub fn generate_nonce(&self) -> Result<Vec<u8>, SecurityError>
Auto Trait Implementations§
impl Freeze for EncryptionManager
impl RefUnwindSafe for EncryptionManager
impl Send for EncryptionManager
impl Sync for EncryptionManager
impl Unpin for EncryptionManager
impl UnwindSafe for EncryptionManager
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