Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
bn128_pp.cpp
Go to the documentation of this file.
1
10
11namespace libff {
12
17
22
27
32
34 const bn128_ate_G2_precomp &prec_Q)
35{
36 enter_block("Call to miller_loop<bn128_pp>");
37 bn128_Fq12 result = bn128_ate_miller_loop(prec_P, prec_Q);
38 leave_block("Call to miller_loop<bn128_pp>");
39 return result;
40}
41
43 const bn128_ate_G2_precomp &prec_Q1,
44 const bn128_ate_G1_precomp &prec_P2,
45 const bn128_ate_G2_precomp &prec_Q2)
46{
47 enter_block("Call to double_miller_loop<bn128_pp>");
48 bn128_Fq12 result = bn128_double_ate_miller_loop(prec_P1, prec_Q1, prec_P2, prec_Q2);
49 leave_block("Call to double_miller_loop<bn128_pp>");
50 return result;
51}
52
54 const bn128_G2 &Q)
55{
56 enter_block("Call to pairing<bn128_pp>");
59
60 bn128_Fq12 result = bn128_pp::miller_loop(prec_P, prec_Q);
61 leave_block("Call to pairing<bn128_pp>");
62 return result;
63}
64
66 const bn128_G2 &Q)
67{
68 enter_block("Call to reduced_pairing<bn128_pp>");
69 const bn128_Fq12 f = bn128_pp::pairing(P, Q);
71 leave_block("Call to reduced_pairing<bn128_pp>");
72 return result;
73}
74
75} // libff
static bn128_GT reduced_pairing(const bn128_G1 &P, const bn128_G2 &Q)
Definition bn128_pp.cpp:65
static bn128_GT pairing(const bn128_G1 &P, const bn128_G2 &Q)
Definition bn128_pp.cpp:53
static bn128_GT final_exponentiation(const bn128_Fq12 &elt)
Definition bn128_pp.cpp:18
static bn128_ate_G1_precomp precompute_G1(const bn128_G1 &P)
Definition bn128_pp.cpp:23
static bn128_ate_G2_precomp precompute_G2(const bn128_G2 &Q)
Definition bn128_pp.cpp:28
static void init_public_params()
Definition bn128_pp.cpp:13
static bn128_Fq12 miller_loop(const bn128_ate_G1_precomp &prec_P, const bn128_ate_G2_precomp &prec_Q)
Definition bn128_pp.cpp:33
static bn128_Fq12 double_miller_loop(const bn128_ate_G1_precomp &prec_P1, const bn128_ate_G2_precomp &prec_Q1, const bn128_ate_G1_precomp &prec_P2, const bn128_ate_G2_precomp &prec_Q2)
Definition bn128_pp.cpp:42
#define P
Definition dtoa.c:437
bn128_Fq12 bn128_double_ate_miller_loop(const bn128_ate_G1_precomp &prec_P1, const bn128_ate_G2_precomp &prec_Q1, const bn128_ate_G1_precomp &prec_P2, const bn128_ate_G2_precomp &prec_Q2)
bn128_ate_G2_precomp bn128_ate_precompute_G2(const bn128_G2 &Q)
bn128_Fq12 bn128_ate_miller_loop(const bn128_ate_G1_precomp &prec_P, const bn128_ate_G2_precomp &prec_Q)
void enter_block(const std::string &msg, const bool indent)
bn128_GT bn128_final_exponentiation(const bn128_Fq12 &elt)
void leave_block(const std::string &msg, const bool indent)
void init_bn128_params()
bn128_ate_G1_precomp bn128_ate_precompute_G1(const bn128_G1 &P)