[−][src]Struct rcrypto::AES
Implementations
impl AES
[src]
pub fn aes_128(key: [u8; 16]) -> Self
[src]
pub fn aes_192(key: [u8; 24]) -> Self
[src]
pub fn aes_256(key: [u8; 32]) -> Self
[src]
impl AES
[src]
pub fn new(key: Vec<u8>) -> Result<Self, CryptoError>
[src]
key
must have a valid length in bytes(AES-128: 16, AES-192: 24, AES-256: 32), otherwise
CryptoError
will returned.
Trait Implementations
impl Cipher for AES
[src]
fn block_size(&self) -> Option<usize>
[src]
fn encrypt(
&self,
dst: &mut Vec<u8>,
plaintext_block: &[u8]
) -> Result<usize, CryptoError>
[src]
&self,
dst: &mut Vec<u8>,
plaintext_block: &[u8]
) -> Result<usize, CryptoError>
fn decrypt(
&self,
dst: &mut Vec<u8>,
cipher_block: &[u8]
) -> Result<usize, CryptoError>
[src]
&self,
dst: &mut Vec<u8>,
cipher_block: &[u8]
) -> Result<usize, CryptoError>
impl Clone for AES
[src]
Auto Trait Implementations
impl RefUnwindSafe for AES
impl Send for AES
impl Sync for AES
impl Unpin for AES
impl UnwindSafe for AES
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,