[][src]Struct amcl_miracl::gcm::GCM

pub struct GCM { /* fields omitted */ }

Methods

impl GCM[src]

pub fn init(&mut self, nk: usize, key: &[u8], niv: usize, iv: &[u8])[src]

pub fn new() -> GCM[src]

pub fn add_header(&mut self, header: &[u8], len: usize) -> bool[src]

pub fn add_plain(&mut self, cipher: &mut [u8], plain: &[u8], len: usize) -> bool[src]

pub fn add_cipher(
    &mut self,
    plain: &mut [u8],
    cipher: &[u8],
    len: usize
) -> bool
[src]

pub fn finish(&mut self, extract: bool) -> [u8; 16][src]

pub fn hex2bytes(hex: &[u8], bin: &mut [u8])[src]

Auto Trait Implementations

impl Sync for GCM

impl Send for GCM

impl Unpin for GCM

impl RefUnwindSafe for GCM

impl UnwindSafe for GCM

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]