pub struct MysqlAes128 { /* private fields */ }Implementations§
Source§impl MysqlAes128
impl MysqlAes128
pub fn new(password: &[u8]) -> MysqlAes128
pub fn encrypt(&self, plain_text: &[u8]) -> Result<Encrypted, MysqlEncryptError>
pub fn decrypt(&self, encrypted: &[u8]) -> Result<Vec<u8>, MysqlDecryptError>
pub fn decrypt_from_base64( &self, encrypted_base64: &str, ) -> Result<Vec<u8>, MysqlDecryptFromBase64Error>
Trait Implementations§
Source§impl Clone for MysqlAes128
impl Clone for MysqlAes128
Source§fn clone(&self) -> MysqlAes128
fn clone(&self) -> MysqlAes128
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MysqlAes128
impl Debug for MysqlAes128
Source§impl Hash for MysqlAes128
impl Hash for MysqlAes128
Source§impl Ord for MysqlAes128
impl Ord for MysqlAes128
Source§fn cmp(&self, other: &MysqlAes128) -> Ordering
fn cmp(&self, other: &MysqlAes128) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MysqlAes128
impl PartialEq for MysqlAes128
Source§impl PartialOrd for MysqlAes128
impl PartialOrd for MysqlAes128
impl Eq for MysqlAes128
impl StructuralPartialEq for MysqlAes128
Auto Trait Implementations§
impl Freeze for MysqlAes128
impl RefUnwindSafe for MysqlAes128
impl Send for MysqlAes128
impl Sync for MysqlAes128
impl Unpin for MysqlAes128
impl UnwindSafe for MysqlAes128
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