Struct snowbridge_amcl::aes::AES
source · pub struct AES {
pub f: [u8; 16],
/* private fields */
}
Fields§
§f: [u8; 16]
Implementations§
source§impl AES
impl AES
pub fn new() -> AES
pub fn init( &mut self, m: usize, nkey: usize, key: &[u8], iv: Option<[u8; 16]> ) -> bool
pub fn getreg(&mut self) -> [u8; 16]
pub fn ecb_encrypt(&mut self, buff: &mut [u8; 16])
pub fn ecb_decrypt(&mut self, buff: &mut [u8; 16])
pub fn encrypt(&mut self, buff: &mut [u8; 16]) -> u32
pub fn decrypt(&mut self, buff: &mut [u8; 16]) -> u32
pub fn end(&mut self)
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more