/// Generate output, overwriting data already in the buffer
Generate output, overwriting data already in the buffer
Generate output overwriting data already in the buffer
pub(crate) fn generate(&mut self, counter: u64, output: &mut [u8]) {
        debug_assert_eq!(output.len(), BLOCK_SIZE);
        self.counter_setup(counter);
        let mut state = self.state;
        self.rounds(&mut state);
        for (i, chunk) in output.chunks_mut(4).enumerate() {
            chunk.copy_from_slice(&state[i].to_le_bytes());
        }
    }
pub ( crate ) fn generate ( & mut self , counter : u64 , output : & mut [ u8 ] ) { debug_assert_eq ! ( output len ( ) BLOCK_SIZE ) ; self . counter_setup ( counter ) ; let mut state = self . state ; self . rounds ( & mut state ) ; for ( i , chunk ) in output . chunks_mut ( 4 ) . enumerate ( ) { chunk . copy_from_slice ( & state [ i ] . to_le_bytes ( ) ) ; } }
Generate output, overwriting data already in the buffer
Generate output overwriting data already in the buffer
&mut self
<not_specific>
counter
u64
<not_specific>
output
&mut [u8]
<not_specific>