From fca74d4bc3569506a6659880a89aa009dc11f552 Mon Sep 17 00:00:00 2001 From: wukong Date: Mon, 23 Nov 2015 17:48:48 +0100 Subject: moon-abe cleanup Change-Id: Ie1259856db03f0b9e80de3e967ec6bd1f03191b3 --- moon-abe/pbc-0.5.14/guru/exp_test.c | 88 ------------------------------------- 1 file changed, 88 deletions(-) delete mode 100644 moon-abe/pbc-0.5.14/guru/exp_test.c (limited to 'moon-abe/pbc-0.5.14/guru/exp_test.c') diff --git a/moon-abe/pbc-0.5.14/guru/exp_test.c b/moon-abe/pbc-0.5.14/guru/exp_test.c deleted file mode 100644 index 02ccfaba..00000000 --- a/moon-abe/pbc-0.5.14/guru/exp_test.c +++ /dev/null @@ -1,88 +0,0 @@ -// Mutliexponentiation benchmark and test. - -#include -#include "pbc.h" -#include "pbc_test.h" - -int main(int argc, char **argv) { - pairing_t pairing; - element_t g1, u1, up1, g2, u2, up2, r; - mpz_t r_mpz; - element_pp_t g1_pp, g2_pp; - double t0, t1; - int i, n; - - printf("reading pairing from stdin...\n"); - pbc_demo_pairing_init(pairing, argc, argv); - - element_init(r, pairing->Zr); - element_init(g1, pairing->G1); - element_init(u1, pairing->G1); - element_init(up1, pairing->G1); - element_init(g2, pairing->G2); - element_init(u2, pairing->G2); - element_init(up2, pairing->G2); - - element_random(r); - element_random(g1); - element_random(g2); - - mpz_init(r_mpz); - element_to_mpz(r_mpz, r); - - element_pp_init(g1_pp, g1); - element_pp_init(g2_pp, g2); - - n = 100; - t0 = pbc_get_time(); - for (i=0; i