Struct magic_crypt::MagicCrypt128 [−][src]
pub struct MagicCrypt128 { /* fields omitted */ }
Expand description
This struct can help you encrypt or decrypt data via AES-128 in a quick way.
Trait Implementations
fn encrypt_reader_to_writer2<N: ArrayLength<u8> + PartialDiv<U16> + IsGreaterOrEqual<U16, Output = True>>(
&self,
reader: &mut dyn Read,
writer: &mut dyn Write
) -> Result<(), MagicCryptError>
fn decrypt_bytes_to_bytes<T: ?Sized + AsRef<[u8]>>(
&self,
bytes: &T
) -> Result<Vec<u8>, MagicCryptError>
fn decrypt_reader_to_writer2<N: ArrayLength<u8> + PartialDiv<U16> + IsGreaterOrEqual<U16, Output = True> + Add<B1>>(
&self,
reader: &mut dyn Read,
writer: &mut dyn Write
) -> Result<(), MagicCryptError> where
<N as Add<B1>>::Output: ArrayLength<u8>,
fn encrypt_reader_to_writer(
&self,
reader: &mut dyn Read,
writer: &mut dyn Write
) -> Result<(), MagicCryptError>
fn decrypt_base64_to_string<S: AsRef<str>>(
&self,
base64: S
) -> Result<String, MagicCryptError>
fn decrypt_base64_to_bytes<S: AsRef<str>>(
&self,
base64: S
) -> Result<Vec<u8>, MagicCryptError>
fn decrypt_reader_to_writer(
&self,
reader: &mut dyn Read,
writer: &mut dyn Write
) -> Result<(), MagicCryptError>
Auto Trait Implementations
impl RefUnwindSafe for MagicCrypt128
impl Send for MagicCrypt128
impl Sync for MagicCrypt128
impl Unpin for MagicCrypt128
impl UnwindSafe for MagicCrypt128
Blanket Implementations
Mutably borrows from an owned value. Read more