summaryrefslogtreecommitdiffstats
path: root/lock/util.c
blob: 32a1fcf2ffd99b5cb27f10945c820ccd8af3a124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/wdt.h>

#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];
}