Network wrapper protocol as part of the practical master thesis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
741 B

#ifndef CONFIG_CURVE_FP256BN_H
#define CONFIG_CURVE_FP256BN_H
#include"amcl.h"
#include"config_field_FP256BN.h"
// ECP stuff
#define CURVETYPE_FP256BN WEIERSTRASS
#define PAIRING_FRIENDLY_FP256BN BN
/*
#define CURVETYPE_FP256BN EDWARDS
#define PAIRING_FRIENDLY_FP256BN NOT
*/
#if PAIRING_FRIENDLY_FP256BN != NOT
//#define USE_GLV_FP256BN /**< Note this method is patented (GLV), so maybe you want to comment this out */
//#define USE_GS_G2_FP256BN /**< Well we didn't patent it :) But may be covered by GLV patent :( */
#define USE_GS_GT_FP256BN /**< Not patented, so probably safe to always use this */
#define POSITIVEX 0
#define NEGATIVEX 1
#define SEXTIC_TWIST_FP256BN M_TYPE
#define SIGN_OF_X_FP256BN NEGATIVEX
#endif
#endif