[][src]Struct rcrypto::AES

pub struct AES { /* fields omitted */ }

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]

type Output = usize

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.