pub struct EncryptionEngine { /* private fields */ }Expand description
Encryption engine using AES-256-GCM SECURITY: Uses atomic counter to guarantee nonce uniqueness
Implementations§
Source§impl EncryptionEngine
impl EncryptionEngine
Sourcepub fn new(key: &EncryptionKey) -> Result<Self, String>
pub fn new(key: &EncryptionKey) -> Result<Self, String>
Create new encryption engine with key
Auto Trait Implementations§
impl !Freeze for EncryptionEngine
impl RefUnwindSafe for EncryptionEngine
impl Send for EncryptionEngine
impl Sync for EncryptionEngine
impl Unpin for EncryptionEngine
impl UnsafeUnpin for EncryptionEngine
impl UnwindSafe for EncryptionEngine
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