diff options
author | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-02-27 16:02:41 +0100 |
---|---|---|
committer | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-02-27 16:02:41 +0100 |
commit | f6061fe574166b7d23b208f047e8789081877c57 (patch) | |
tree | 78ce2e5e6dc28736c66d4412ef3f2dc46036e3ab /controller/fw/src/tinyaes_adaptor.c | |
parent | 43ff9fdac05c0ceb696685f683bba077bd2c8da2 (diff) | |
download | master-thesis-f6061fe574166b7d23b208f047e8789081877c57.tar.gz master-thesis-f6061fe574166b7d23b208f047e8789081877c57.tar.bz2 master-thesis-f6061fe574166b7d23b208f047e8789081877c57.zip |
Add missing files
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; +} |