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

Function xor_block

source/src/crypto.cpp:384–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382static uchar *entpool = NULL;
383
384static void xor_block(uchar *d, const uchar *s, int len)
385{
386 uint64_t *dd = (uint64_t *)d, *ss = (uint64_t *)s;
387 for( ; len > 7; len -= 8) *dd++ ^= *ss++;
388 d = (uchar*)dd, s = (uchar*)ss;
389 while(len-- > 0) *d++ ^= *s++;
390}
391
392static void mix_block(uchar *d, const uchar *s, int len)
393{

Callers 4

entropy_add_blockFunction · 0.85
passphrase2keyFunction · 0.85
passdeferredFunction · 0.85
authsetupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected