-rw-r--r-- 355 libntruprime-20240910/crypto_encode/1277x2627round/ref/encode.c raw
#include "crypto_encode_1277x2627.h" #include "crypto_encode.h" #include "crypto_int16.h" #include "crypto_int8.h" #define int16 crypto_int16 #define p 1277 void crypto_encode(unsigned char *out,const void *v) { const int16 *a = v; int16 x[p]; int i; for (i = 0;i < p;++i) x[i] = 3*((10923*a[i]+16384)>>15); crypto_encode_1277x2627(out,x); }