pub fn update(&mut self, x: &[u8; BLOCKSIZE]) {
        let x = U32x4(
            u32::from_be_bytes(x[12..].try_into().unwrap()),
            u32::from_be_bytes(x[8..12].try_into().unwrap()),
            u32::from_be_bytes(x[4..8].try_into().unwrap()),
            u32::from_be_bytes(x[..4].try_into().unwrap()),
        );
        self.s = (self.s + x) * self.h;
    }
/// Input a field element `X` to be authenticated
Input a field element `X` to be authenticated
Input a field element ` X ` to be authenticated
pub fn update(&mut self, x: &[u8; BLOCKSIZE]) {
        let x = U32x4(
            u32::from_be_bytes(x[12..].try_into().unwrap()),
            u32::from_be_bytes(x[8..12].try_into().unwrap()),
            u32::from_be_bytes(x[4..8].try_into().unwrap()),
            u32::from_be_bytes(x[..4].try_into().unwrap()),
        );
        self.s = (self.s + x) * self.h;
    }
pub fn update ( & mut self , x : & [ u8 ; BLOCKSIZE ] ) { let x = U32x4 ( u32 :: from_be_bytes ( x [ 12 .. ] . try_into ( ) . unwrap ( ) ) , u32 :: from_be_bytes ( x [ 8 .. 12 ] . try_into ( ) . unwrap ( ) ) , u32 :: from_be_bytes ( x [ 4 .. 8 ] . try_into ( ) . unwrap ( ) ) , u32 :: from_be_bytes ( x [ .. 4 ] . try_into ( ) . unwrap ( ) ) , ) ; self . s = ( self . s + x ) * self . h ; }
Input a field element `X` to be authenticated
Input a field element ` X ` to be authenticated
&mut self
x
&[u8; BLOCKSIZE]
&mut self
x
&[u8; BLOCKSIZE]