-rw-r--r-- 388 saferewrite-20210915/src/encode_761x4591/ref/wrapper.c
#include "crypto_int16.h" #include "crypto_encode.h" #include "Encode.h" #define int16 crypto_int16 #define uint16 crypto_uint16 #define q 4591 #define q12 2295 #define p 761 void crypto_encode(unsigned char *s,const void *v) { const int16 *r = v; uint16 R[p],M[p]; int i; for (i = 0;i < p;++i) R[i] = (r[i]+q12)&16383; for (i = 0;i < p;++i) M[i] = q; Encode(s,R,M,p); }