MCPcopy Create free account
hub / github.com/LUX-Core/lux / Xor16

Function Xor16

src/cryptopp/gcm.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120#endif
121
122inline static void Xor16(byte *a, const byte *b, const byte *c)
123{
124 CRYPTOPP_ASSERT(IsAlignedOn(a,GetAlignmentOf<word64>()));
125 CRYPTOPP_ASSERT(IsAlignedOn(b,GetAlignmentOf<word64>()));
126 CRYPTOPP_ASSERT(IsAlignedOn(c,GetAlignmentOf<word64>()));
127 ((word64 *)(void *)a)[0] = ((word64 *)(void *)b)[0] ^ ((word64 *)(void *)c)[0];
128 ((word64 *)(void *)a)[1] = ((word64 *)(void *)b)[1] ^ ((word64 *)(void *)c)[1];
129}
130
131#if CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE
132CRYPTOPP_ALIGN_DATA(16)

Callers 1

SetKeyWithoutResyncMethod · 0.85

Calls 1

IsAlignedOnFunction · 0.85

Tested by

no test coverage detected