diff options
Diffstat (limited to 'controller/fw/src/rslib.c')
-rw-r--r-- | controller/fw/src/rslib.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/controller/fw/src/rslib.c b/controller/fw/src/rslib.c deleted file mode 100644 index aa0db2c..0000000 --- a/controller/fw/src/rslib.c +++ /dev/null @@ -1,28 +0,0 @@ -#include <stdint.h> -#include <string.h> - -#include "rscode-config.h" -#include <ecc.h> - -#include "rslib.h" - -static struct rscode_driver driver; - -void rslib_encode(int nbits, size_t msglen, char msg[static msglen], char out[msglen + NPAR]) { - rscode_init(&driver, nbits); - rscode_encode(&driver, (unsigned char *)msg, msglen, (unsigned char *)out); -} - -int rslib_decode(int nbits, size_t msglen, char msg_inout[static msglen]) { - rscode_init(&driver, nbits); - return rscode_decode(&driver, (unsigned char *)msg_inout, msglen); -} - -int rslib_gexp(int z, int nbits) { - rscode_init(&driver, nbits); - return gexp(&driver, z); -} - -size_t rslib_npar() { - return NPAR; -} |