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

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

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