Struct snowbridge_amcl::gcm::GCM
source · pub struct GCM { /* private fields */ }
Implementations§
source§impl GCM
impl GCM
pub fn init(&mut self, nk: usize, key: &[u8], niv: usize, iv: &[u8])
pub fn new() -> GCM
pub fn add_header(&mut self, header: &[u8], len: usize) -> bool
pub fn add_plain(&mut self, cipher: &mut [u8], plain: &[u8], len: usize) -> bool
pub fn add_cipher( &mut self, plain: &mut [u8], cipher: &[u8], len: usize ) -> bool
pub fn finish(&mut self, extract: bool) -> [u8; 16]
pub fn hex2bytes(hex: &[u8], bin: &mut [u8])
Auto Trait Implementations§
impl RefUnwindSafe for GCM
impl Send for GCM
impl Sync for GCM
impl Unpin for GCM
impl UnwindSafe for GCM
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