Clearmatics Libff  0.1
C++ library for Finite Fields and Elliptic Curves
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
libff::edwards_pp Class Reference

#include <edwards_pp.hpp>

Public Types

typedef edwards_Fr Fp_type
 
typedef edwards_G1 G1_type
 
typedef edwards_G2 G2_type
 
typedef edwards_G1_precomp G1_precomp_type
 
typedef edwards_G2_precomp G2_precomp_type
 
typedef edwards_Fq Fq_type
 
typedef edwards_Fq3 Fqe_type
 
typedef edwards_Fq6 Fqk_type
 
typedef edwards_GT GT_type
 

Static Public Member Functions

static void init_public_params ()
 
static edwards_GT final_exponentiation (const edwards_Fq6 &elt)
 
static edwards_G1_precomp precompute_G1 (const edwards_G1 &P)
 
static edwards_G2_precomp precompute_G2 (const edwards_G2 &Q)
 
static edwards_Fq6 miller_loop (const edwards_G1_precomp &prec_P, const edwards_G2_precomp &prec_Q)
 
static edwards_Fq6 double_miller_loop (const edwards_G1_precomp &prec_P1, const edwards_G2_precomp &prec_Q1, const edwards_G1_precomp &prec_P2, const edwards_G2_precomp &prec_Q2)
 
static edwards_Fq6 pairing (const edwards_G1 &P, const edwards_G2 &Q)
 
static edwards_Fq6 reduced_pairing (const edwards_G1 &P, const edwards_G2 &Q)
 

Static Public Attributes

static const std::string name
 
static const bool has_affine_pairing = false
 

Detailed Description

Definition at line 19 of file edwards_pp.hpp.

Member Typedef Documentation

◆ Fp_type

Definition at line 24 of file edwards_pp.hpp.

◆ Fq_type

Definition at line 29 of file edwards_pp.hpp.

◆ Fqe_type

Definition at line 30 of file edwards_pp.hpp.

◆ Fqk_type

Definition at line 31 of file edwards_pp.hpp.

◆ G1_precomp_type

Definition at line 27 of file edwards_pp.hpp.

◆ G1_type

Definition at line 25 of file edwards_pp.hpp.

◆ G2_precomp_type

Definition at line 28 of file edwards_pp.hpp.

◆ G2_type

Definition at line 26 of file edwards_pp.hpp.

◆ GT_type

Definition at line 32 of file edwards_pp.hpp.

Member Function Documentation

◆ double_miller_loop()

edwards_Fq6 libff::edwards_pp::double_miller_loop ( const edwards_G1_precomp prec_P1,
const edwards_G2_precomp prec_Q1,
const edwards_G1_precomp prec_P2,
const edwards_G2_precomp prec_Q2 
)
static

Definition at line 38 of file edwards_pp.cpp.

43 {
44  return edwards_double_miller_loop(prec_P1, prec_Q1, prec_P2, prec_Q2);
45 }
Here is the call graph for this function:

◆ final_exponentiation()

edwards_GT libff::edwards_pp::final_exponentiation ( const edwards_Fq6 elt)
static

Definition at line 17 of file edwards_pp.cpp.

18 {
19  return edwards_final_exponentiation(elt);
20 }
Here is the call graph for this function:

◆ init_public_params()

void libff::edwards_pp::init_public_params ( )
static

Definition at line 15 of file edwards_pp.cpp.

Here is the call graph for this function:

◆ miller_loop()

edwards_Fq6 libff::edwards_pp::miller_loop ( const edwards_G1_precomp prec_P,
const edwards_G2_precomp prec_Q 
)
static

Definition at line 32 of file edwards_pp.cpp.

34 {
35  return edwards_miller_loop(prec_P, prec_Q);
36 }
Here is the call graph for this function:

◆ pairing()

edwards_Fq6 libff::edwards_pp::pairing ( const edwards_G1 P,
const edwards_G2 Q 
)
static

Definition at line 47 of file edwards_pp.cpp.

48 {
49  return edwards_pairing(P, Q);
50 }
Here is the call graph for this function:

◆ precompute_G1()

edwards_G1_precomp libff::edwards_pp::precompute_G1 ( const edwards_G1 P)
static

Definition at line 22 of file edwards_pp.cpp.

23 {
24  return edwards_precompute_G1(P);
25 }
Here is the call graph for this function:

◆ precompute_G2()

edwards_G2_precomp libff::edwards_pp::precompute_G2 ( const edwards_G2 Q)
static

Definition at line 27 of file edwards_pp.cpp.

28 {
29  return edwards_precompute_G2(Q);
30 }
Here is the call graph for this function:

◆ reduced_pairing()

edwards_Fq6 libff::edwards_pp::reduced_pairing ( const edwards_G1 P,
const edwards_G2 Q 
)
static

Definition at line 52 of file edwards_pp.cpp.

54 {
55  return edwards_reduced_pairing(P, Q);
56 }
Here is the call graph for this function:

Member Data Documentation

◆ has_affine_pairing

const bool libff::edwards_pp::has_affine_pairing = false
static

Definition at line 34 of file edwards_pp.hpp.

◆ name

const std::string libff::edwards_pp::name
static

Definition at line 22 of file edwards_pp.hpp.


The documentation for this class was generated from the following files:
libff::edwards_pairing
edwards_Fq6 edwards_pairing(const edwards_G1 &P, const edwards_G2 &Q)
Definition: edwards_pairing.cpp:801
libff::edwards_precompute_G2
edwards_G2_precomp edwards_precompute_G2(const edwards_G2 &Q)
Definition: edwards_pairing.cpp:781
libff::edwards_miller_loop
edwards_Fq6 edwards_miller_loop(const edwards_G1_precomp &prec_P, const edwards_G2_precomp &prec_Q)
Definition: edwards_pairing.cpp:786
libff::edwards_precompute_G1
edwards_G1_precomp edwards_precompute_G1(const edwards_G1 &P)
Definition: edwards_pairing.cpp:776
libff::edwards_final_exponentiation
edwards_GT edwards_final_exponentiation(const edwards_Fq6 &elt)
Definition: edwards_pairing.cpp:219
libff::edwards_reduced_pairing
edwards_GT edwards_reduced_pairing(const edwards_G1 &P, const edwards_G2 &Q)
Definition: edwards_pairing.cpp:806
libff::edwards_double_miller_loop
edwards_Fq6 edwards_double_miller_loop(const edwards_G1_precomp &prec_P1, const edwards_G2_precomp &prec_Q1, const edwards_G1_precomp &prec_P2, const edwards_G2_precomp &prec_Q2)
Definition: edwards_pairing.cpp:792
libff::init_edwards_params
void init_edwards_params()
Definition: edwards_init.cpp:38