mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@3 36d66b0a-2a48-0410-832c-cd162a569da5
14 lines
272 B
C
14 lines
272 B
C
#ifndef INCLUDED_CRYPTSETUP_LUKS_XORBLOCK_H
|
|
#define INCLUDED_CRYPTSETUP_LUKS_XORBLOCK_H
|
|
|
|
#include <stddef.h>
|
|
|
|
static void inline XORblock(char const *src1, char const *src2, char *dst, size_t n)
|
|
{
|
|
size_t j;
|
|
for(j = 0; j < n; ++j)
|
|
dst[j] = src1[j] ^ src2[j];
|
|
}
|
|
|
|
#endif
|