Struct magic_crypt::MagicCrypt256 [−][src]
pub struct MagicCrypt256 { /* fields omitted */ }
Expand description
This struct can help you encrypt or decrypt data via AES-256 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 MagicCrypt256
impl Send for MagicCrypt256
impl Sync for MagicCrypt256
impl Unpin for MagicCrypt256
impl UnwindSafe for MagicCrypt256
Blanket Implementations
Mutably borrows from an owned value. Read more