pairing.h File Reference

Definition of pairing math. More...

Functions

void PairingInit (PairingState *state)
 Initializes pairing environment. More...
 
void PairingCompute (Fq12Elem *d, EccPointFq const *P, EccPointFq2 const *Q, PairingState const *state)
 Computes a pairing according to the Optimal Ate pairing computation. More...
 

Detailed Description

Definition of pairing math.

Tiny portable implementations of standard library functions.

Function Documentation

◆ PairingCompute()

void PairingCompute ( Fq12Elem d,
EccPointFq const *  P,
EccPointFq2 const *  Q,
PairingState const *  state 
)

Computes a pairing according to the Optimal Ate pairing computation.

Parameters
[out]dtarget, an element in GT.
[in]Pan element in G1.
[in]Qan element in G2.
[in,out]statepairing state information.

◆ PairingInit()

void PairingInit ( PairingState state)

Initializes pairing environment.

Parameters
[out]statepairing state information.