MCPcopy Create free account
hub / github.com/docknetwork/crypto / run_f

Method run_f

merlin/src/strobe.rs:111–118  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

109
110impl Strobe128 {
111 fn run_f(&mut self) {
112 self.state[self.pos as usize] ^= self.pos_begin;
113 self.state[(self.pos + 1) as usize] ^= 0x04;
114 self.state[(STROBE_R + 1) as usize] ^= 0x80;
115 keccak::f1600(transmute_state(&mut self.state));
116 self.pos = 0;
117 self.pos_begin = 0;
118 }
119
120 fn absorb(&mut self, data: &[u8]) {
121 for byte in data {

Callers 4

absorbMethod · 0.80
overwriteMethod · 0.80
squeezeMethod · 0.80
begin_opMethod · 0.80

Calls 1

transmute_stateFunction · 0.85

Tested by

no test coverage detected