summaryrefslogtreecommitdiff
path: root/controller/fw/src/tinyaes_adaptor.c
blob: 2489e6866874313d7e266da3da8c0b4b69279fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stddef.h>
#include <string.h>

void *memcpy(void *restrict dest, const void *restrict src, size_t n) {
	unsigned char *d = dest;
	const unsigned char *s = src;

	while (n--)
		*d++ = *s++;

	return dest;
}