File tree 2 files changed +5
-5
lines changed
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)
42
42
Keccak digestKeccak (Keccak::Keccak256);
43
43
SHA3 digestSha3 (SHA3 ::Bits256);
44
44
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
-
49
45
// select input source: either file or standard-in
50
46
std::ifstream file;
51
47
std::istream* input = NULL ;
@@ -67,6 +63,10 @@ int main(int argc, char** argv)
67
63
input = &file;
68
64
}
69
65
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
+
70
70
// process file
71
71
while (*input)
72
72
{
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ std::vector<unsigned char> hex2bin(const std::string& hex)
216
216
217
217
218
218
// here we go !
219
- int main (int argc, char ** argv )
219
+ int main ()
220
220
{
221
221
int errors = 0 ;
222
222
You can’t perform that action at this time.
0 commit comments