summaryrefslogtreecommitdiffstats
path: root/lock/util.c
blob: e9a7a5a08eff976dd031dd071d5473113bae950d (plain)
1
2
3
4
5
6
7
8
9
#include "util.h"

void xor(const char *k, const char *s, char *d, int n)
{
	int i;

	for (i = 0; i < n; i++)
		d[i] = s[i] ^ k[i];
}