[][src]Struct amcl_miracl::aes::AES

pub struct AES {
    pub f: [u8; 16],
    // some fields omitted
}

Fields

f: [u8; 16]

Methods

impl AES[src]

pub fn new() -> AES[src]

pub fn reset(&mut self, m: usize, iv: Option<[u8; 16]>)[src]

pub fn init(
    &mut self,
    m: usize,
    nkey: usize,
    key: &[u8],
    iv: Option<[u8; 16]>
) -> bool
[src]

pub fn getreg(&mut self) -> [u8; 16][src]

pub fn ecb_encrypt(&mut self, buff: &mut [u8; 16])[src]

pub fn ecb_decrypt(&mut self, buff: &mut [u8; 16])[src]

pub fn encrypt(&mut self, buff: &mut [u8; 16]) -> u32[src]

pub fn decrypt(&mut self, buff: &mut [u8; 16]) -> u32[src]

pub fn end(&mut self)[src]

Auto Trait Implementations

impl Send for AES

impl Sync for AES

Blanket Implementations

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

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

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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]