/* * File: dclxvi-20130329/test_twistpoint_multiscalar.c * Author: Ruben Niederhagen, Peter Schwabe * Public Domain */ #include #include "twistpoint_fp2.h" #include "twistpoint_fp2_multiscalar.h" #include "parameters.h" extern const scalar_t bn_n; extern const twistpoint_fp2_t bn_curvegen; #define MAXBATCH 500 int main() { struct twistpoint_fp2_struct p[MAXBATCH]; twistpoint_fp2_t r1, r2, t; scalar_t s[MAXBATCH]; int i,batch; for(batch=1;batchm_x, r2->m_x) || !fp2e_iseq(r1->m_y, r2->m_y)) { printf("error\n"); return -1; } } return 0; }