blob: 794711e43d0482069c4fa322e85cd962ca92aa9e [file] [log] [blame]
package XXX
// Curve types
const WEIERSTRASS int = 0
const EDWARDS int = 1
const MONTGOMERY int = 2
// Pairing Friendly?
const NOT int = 0
const BN int = 1
const BLS int = 2
// Pairing Twist type
const D_TYPE int = 0
const M_TYPE int = 1
// Sparsity
const FP_ZERO int = 0
const FP_ONE int = 1
const FP_SPARSER int = 2
const FP_SPARSE int = 3
const FP_DENSE int = 4
// Pairing x parameter sign
const POSITIVEX int = 0
const NEGATIVEX int = 1
// Curve type
const CURVETYPE int = @CT@
const CURVE_PAIRING_TYPE int = @PF@
// Pairings only
const SEXTIC_TWIST int = @ST@
const SIGN_OF_X int = @SX@
const ATE_BITS int = @AB@
// associated hash function and AES key size
const HASH_TYPE int = @HT@
const AESKEY int = @AK@
// These are manually decided policy decisions. To block any potential patent issues set to false.
const USE_GLV bool = true
const USE_GS_G2 bool = true
const USE_GS_GT bool = true