diff options
author | wukong <rebirthmonkey@gmail.com> | 2015-11-23 17:48:48 +0100 |
---|---|---|
committer | wukong <rebirthmonkey@gmail.com> | 2015-11-23 17:48:48 +0100 |
commit | fca74d4bc3569506a6659880a89aa009dc11f552 (patch) | |
tree | 4cefd06af989608ea8ebd3bc6306889e2a1ad175 /moon-abe/pbc-0.5.14/include/pbc_mnt.h | |
parent | 840ac3ebca7af381132bf7e93c1e4c0430d6b16a (diff) |
moon-abe cleanup
Change-Id: Ie1259856db03f0b9e80de3e967ec6bd1f03191b3
Diffstat (limited to 'moon-abe/pbc-0.5.14/include/pbc_mnt.h')
-rw-r--r-- | moon-abe/pbc-0.5.14/include/pbc_mnt.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/moon-abe/pbc-0.5.14/include/pbc_mnt.h b/moon-abe/pbc-0.5.14/include/pbc_mnt.h deleted file mode 100644 index 82e4993b..00000000 --- a/moon-abe/pbc-0.5.14/include/pbc_mnt.h +++ /dev/null @@ -1,49 +0,0 @@ -//requires -// * gmp.h -#ifndef __PBC_MNT_H__ -#define __PBC_MNT_H__ - -struct pbc_cm_s { - mpz_t q; //curve defined over F_q - mpz_t n; //has order n (= q - t + 1) in F_q (and r^2 in F_q^k) - mpz_t h; //h * r = n, r is prime - mpz_t r; - int D; //discrminant needed to find j-invariant - int k; //embedding degree -}; - -typedef struct pbc_cm_s *pbc_cm_ptr; -typedef struct pbc_cm_s pbc_cm_t[1]; - -/*@manual cminfo -Initializes 'cm'. -*/ -void pbc_cm_init(pbc_cm_t cm); -/*@manual cminfo -Clears 'cm'. -*/ -void pbc_cm_clear(pbc_cm_t cm); - -/*@manual cminfo -For a given discriminant D, searches for type D pairings suitable for -cryptography (MNT curves of embedding degree 6). -The group order is at most 'bitlimit' bits. For each set of CM parameters -found, call 'callback' with +pbc_cm_t+ and given +void *+. If the callback -returns nonzero, stops search and returns that value. -Otherwise returns 0. -*/ -int pbc_cm_search_d(int (*callback)(pbc_cm_ptr, void *), void *data, - unsigned int D, unsigned int bitlimit); - -/*@manual cminfo -For a given discriminant D, searches for type G pairings suitable for -cryptography (Freeman curve). -The group order is at most 'bitlimit' bits. For each set of CM parameters -found, call 'callback' with +pbc_cm_t+ and given +void *+. If the callback -returns nonzero, stops search and returns that value. -Otherwise returns 0. -*/ -int pbc_cm_search_g(int (*callback)(pbc_cm_ptr, void *), void *data, - unsigned int D, unsigned int bitlimit); - -#endif //__PBC_MNT_H__ |