MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / xorbuf

Function xorbuf

extra/yassl/taocrypt/src/misc.cpp:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111
112void xorbuf(byte* buf, const byte* mask, unsigned int count)
113{
114 if (((size_t)buf | (size_t)mask | count) % WORD_SIZE == 0)
115 XorWords((word *)buf, (const word *)mask, count/WORD_SIZE);
116 else
117 {
118 for (unsigned int i=0; i<count; i++)
119 buf[i] ^= mask[i];
120 }
121}
122
123
124unsigned int BytePrecision(word value)

Callers 3

DeriveKeyMethod · 0.85
CBC_EncryptMethod · 0.85
CBC_DecryptMethod · 0.85

Calls 1

XorWordsFunction · 0.85

Tested by

no test coverage detected