Initial checking of what was revision 56 on http://luks.endorphin.org/svn/cryptsetup
[platform/upstream/cryptsetup.git] / luks / XORblock.h
1 #ifndef INCLUDED_CRYPTSETUP_LUKS_XORBLOCK_H
2 #define INCLUDED_CRYPTSETUP_LUKS_XORBLOCK_H
3
4 #include <stddef.h>
5
6 static void inline XORblock(char const *src1, char const *src2, char *dst, size_t n)
7 {
8         size_t j;
9         for(j = 0; j < n; ++j)
10                 dst[j] = src1[j] ^ src2[j];
11 }
12
13 #endif