| 111 | struct incremental_buffer { int len, total; union { uchar u[64]; chunk c[8]; }; incremental_buffer() { len = total = 0; } }; |
| 112 | |
| 113 | incremental_buffer *hash_init(hashval &val) |
| 114 | { |
| 115 | static bool init = false; |
| 116 | if(!init) { gensboxes(); init = true; } |
| 117 | |
| 118 | val.chunks[0] = 0x0123456789ABCDEFULL; |
| 119 | val.chunks[1] = 0xFEDCBA9876543210ULL; |
| 120 | val.chunks[2] = 0xF096A5B4C3B2E187ULL; |
| 121 | |
| 122 | return new incremental_buffer; |
| 123 | } |
| 124 | |
| 125 | void hash_incremental(const uchar *msg, int len, hashval &val, incremental_buffer *b) |
| 126 | { |
no test coverage detected