MCPcopy Create free account
hub / github.com/EarlhamInst/KAT / loadHash

Method loadHash

lib/src/input_handler.cc:204–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void kat::InputHandler::loadHash() {
205
206 auto_cpu_timer timer(1, " Time taken: %ws\n\n");
207
208 cout << "Loading hashes into memory...";
209 cout.flush();
210
211 hashLoader = make_shared<HashLoader>();
212 hashLoader->loadHash(input[0], false);
213 hash = hashLoader->getHash();
214 canonical = hashLoader->getCanonical();
215 merLen = hashLoader->getMerLen();
216
217 cout << " done.";
218 cout.flush();
219}
220
221void kat::InputHandler::dump(const path& outputPath, const uint16_t threads) {
222

Callers 8

executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
loadHashesMethod · 0.45
executeMethod · 0.45
TESTFunction · 0.45

Calls 4

getHashMethod · 0.80
getCanonicalMethod · 0.80
flushMethod · 0.45
getMerLenMethod · 0.45

Tested by

no test coverage detected