MCPcopy
hub / github.com/dmarman/sha256algorithm / onClockBackFast

Function onClockBackFast

src/App.js:153–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 }
152
153 function onClockBackFast() {
154 if(clock < 10) return;
155
156 if(clock < lastClock()) setClock(clock - 10);
157 let result = shaStepped(input, firstLoop(clock - 11), secondLoop(clock - 11), chunksLoop(clock - 11 ));
158
159 setWView(result.w);
160 setResult(result.hash);
161 setLetters(result.letters);
162 setLettersBefore(result.lettersBefore);
163 setHs(result.hs);
164 setHsBefore(result.hsBefore);
165
166 ReactGA.event('onClockBackFast');
167 }
168
169 function onClockBack() {
170 if(clock === 0) return;

Callers

nothing calls this directly

Calls 5

lastClockFunction · 0.85
shaSteppedFunction · 0.85
firstLoopFunction · 0.85
secondLoopFunction · 0.85
chunksLoopFunction · 0.85

Tested by

no test coverage detected