MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / Xor128

Function Xor128

Libraries/unrar/rijndael.cpp:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20inline void Xor128(void *dest,const void *arg1,const void *arg2)
21{
22#ifdef ALLOW_MISALIGNED
23 ((uint32*)dest)[0]=((uint32*)arg1)[0]^((uint32*)arg2)[0];
24 ((uint32*)dest)[1]=((uint32*)arg1)[1]^((uint32*)arg2)[1];
25 ((uint32*)dest)[2]=((uint32*)arg1)[2]^((uint32*)arg2)[2];
26 ((uint32*)dest)[3]=((uint32*)arg1)[3]^((uint32*)arg2)[3];
27#else
28 for (int I=0;I<16;I++)
29 ((byte*)dest)[I]=((byte*)arg1)[I]^((byte*)arg2)[I];
30#endif
31}
32
33
34inline void Xor128(byte *dest,const byte *arg1,const byte *arg2,

Callers 2

blockEncryptMethod · 0.85
blockDecryptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected