diff options
author | 2015-11-23 17:48:48 +0100 | |
---|---|---|
committer | 2015-11-23 17:48:48 +0100 | |
commit | fca74d4bc3569506a6659880a89aa009dc11f552 (patch) | |
tree | 4cefd06af989608ea8ebd3bc6306889e2a1ad175 /moon-abe/libbswabe-0.9/private.h | |
parent | 840ac3ebca7af381132bf7e93c1e4c0430d6b16a (diff) |
moon-abe cleanup
Change-Id: Ie1259856db03f0b9e80de3e967ec6bd1f03191b3
Diffstat (limited to 'moon-abe/libbswabe-0.9/private.h')
-rw-r--r-- | moon-abe/libbswabe-0.9/private.h | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/moon-abe/libbswabe-0.9/private.h b/moon-abe/libbswabe-0.9/private.h deleted file mode 100644 index 3498f17b..00000000 --- a/moon-abe/libbswabe-0.9/private.h +++ /dev/null @@ -1,94 +0,0 @@ -/* - Include glib.h, pbc.h, and bswabe.h before including this file. -*/ - -struct bswabe_pub_s -{ - char* pairing_desc; - pairing_t p; - element_t g; /* G_1 */ - element_t h; /* G_1 */ - element_t gp; /* G_2 */ - element_t g_hat_alpha; /* G_T */ -}; - -struct bswabe_msk_s -{ - element_t beta; /* Z_r */ - element_t g_alpha; /* G_2 */ -}; - -/* Attributes */ -typedef struct -{ - /* these actually get serialized */ - char* attr; - element_t d; /* G_2 */ - element_t dp; /* G_2 */ - - /* only used during dec (only by dec_merge) */ - int used; - element_t z; /* G_1 */ - element_t zp; /* G_1 */ -} -bswabe_prv_comp_t; - -struct bswabe_prv_s -{ - element_t d; /* G_2 */ - GArray* comps; /* bswabe_prv_comp_t's */ -}; - -typedef struct -{ - int deg; - /* coefficients from [0] x^0 to [deg] x^deg */ - element_t* coef; /* G_T (of length deg + 1) */ -} -bswabe_polynomial_t; - -typedef struct -{ - /* serialized */ - int k; /* one if leaf, otherwise threshold */ - char* attr; /* attribute string if leaf, otherwise null */ - element_t c; /* G_1, only for leaves */ - element_t cp; /* G_1, only for leaves */ - GPtrArray* children; /* pointers to bswabe_policy_t's, len == 0 for leaves */ - - /* only used during encryption */ - bswabe_polynomial_t* q; - - /* only used during decryption */ - int satisfiable; - int min_leaves; - int attri; - GArray* satl; -} -bswabe_policy_t; - -struct bswabe_cph_s -{ - element_t cs; /* G_T */ - element_t c; /* G_1 */ - bswabe_policy_t* p; - char* policy; -}; - -struct peks_sew_s -{ - element_t A; /* G_1 */ - element_t B; /* G_T */ -}; - -struct peks_trap_s -{ - element_t T; /* G_1 */ -}; - -struct peks_ind_s -{ - GArray* comps; /* index's components */ -}; - - |