MCPcopy Create free account
hub / github.com/assaultcube/AC / hash_init

Function hash_init

source/src/crypto.cpp:113–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

hashFunction · 0.85
tigerhash_initFunction · 0.85

Calls 1

gensboxesFunction · 0.85

Tested by

no test coverage detected