123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- /*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- /// Definition of pairing math
- /*! \file */
- /*!
- * \file
- * \brief Tiny portable implementations of standard library functions
- */
- /// \cond
- typedef struct Fq12Elem Fq12Elem;
- typedef struct EccPointFq EccPointFq;
- typedef struct EccPointFq2 EccPointFq2;
- typedef struct PairingState PairingState;
- /// \endcond
- /// Initializes pairing environment.
- /*!
- \param[out] state pairing state information.
- */
- void PairingInit(PairingState* state);
- /// Computes a pairing according to the Optimal Ate pairing computation
- /*!
- \param[out] d target, an element in GT.
- \param[in] P an element in G1.
- \param[in] Q an element in G2.
- \param[in,out] state pairing state information.
- */
- void PairingCompute(Fq12Elem* d, EccPointFq const* P, EccPointFq2 const* Q,
- PairingState const* state);
|