diff options
Diffstat (limited to 'controller/fw/src/tinyaes_adaptor.c')
-rw-r--r-- | controller/fw/src/tinyaes_adaptor.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/controller/fw/src/tinyaes_adaptor.c b/controller/fw/src/tinyaes_adaptor.c new file mode 100644 index 0000000..2489e68 --- /dev/null +++ b/controller/fw/src/tinyaes_adaptor.c @@ -0,0 +1,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; +} |