pub struct Crypter { /* private fields */ }Expand description
| Encryption/decryption context with | key information |
Implementations§
Source§impl Crypter
impl Crypter
pub fn clean_key(&mut self)
pub fn bytes_to_keysha512aes( &self, ch_salt: &Vec<u8>, str_key_data: &SecureString, count: i32, key: *mut u8, iv: *mut u8, ) -> i32
pub fn set_key_from_passphrase( &mut self, str_key_data: &SecureString, ch_salt: &Vec<u8>, n_rounds: u32, n_derivation_method: u32, ) -> bool
pub fn set_key( &mut self, ch_new_key: &KeyingMaterial, ch_newiv: &Vec<u8>, ) -> bool
pub fn encrypt( &self, vch_plaintext: &KeyingMaterial, vch_ciphertext: &mut Vec<u8>, ) -> bool
pub fn decrypt( &self, vch_ciphertext: &Vec<u8>, vch_plaintext: &mut KeyingMaterial, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Crypter
impl RefUnwindSafe for Crypter
impl Send for Crypter
impl Sync for Crypter
impl Unpin for Crypter
impl UnwindSafe for Crypter
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