File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,6 @@ int main(int argc, char** argv)
4242 Keccak digestKeccak (Keccak::Keccak256);
4343 SHA3 digestSha3 (SHA3 ::Bits256);
4444
45- // each cycle processes about 1 MByte (divisible by 144 => improves Keccak/SHA3 performance)
46- const size_t BufferSize = 144 *7 *1024 ;
47- char * buffer = new char [BufferSize];
48-
4945 // select input source: either file or standard-in
5046 std::ifstream file;
5147 std::istream* input = NULL ;
@@ -67,6 +63,10 @@ int main(int argc, char** argv)
6763 input = &file;
6864 }
6965
66+ // each cycle processes about 1 MByte (divisible by 144 => improves Keccak/SHA3 performance)
67+ const size_t BufferSize = 144 *7 *1024 ;
68+ char * buffer = new char [BufferSize];
69+
7070 // process file
7171 while (*input)
7272 {
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ std::vector<unsigned char> hex2bin(const std::string& hex)
216216
217217
218218// here we go !
219- int main (int argc, char ** argv )
219+ int main ()
220220{
221221 int errors = 0 ;
222222
You can’t perform that action at this time.
0 commit comments