• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*############################################################################
2   # Copyright 2016-2017 Intel Corporation
3   #
4   # Licensed under the Apache License, Version 2.0 (the "License");
5   # you may not use this file except in compliance with the License.
6   # You may obtain a copy of the License at
7   #
8   #     http://www.apache.org/licenses/LICENSE-2.0
9   #
10   # Unless required by applicable law or agreed to in writing, software
11   # distributed under the License is distributed on an "AS IS" BASIS,
12   # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   # See the License for the specific language governing permissions and
14   # limitations under the License.
15   ############################################################################*/
16 
17 /*!
18  * \file
19  * \brief Pairing private interface.
20  */
21 
22 #ifndef EPID_COMMON_MATH_SRC_PAIRING_INTERNAL_H_
23 #define EPID_COMMON_MATH_SRC_PAIRING_INTERNAL_H_
24 
25 /// Pairing State
26 struct PairingState {
27   EcGroup* ga;      ///< elliptic curve group G1
28   EcGroup* gb;      ///< elliptic curve group G1
29   FiniteField* ff;  ///< finite field Fq12 GT
30   BigNum* t;  ///< positive integer such that 6t^2 = p-q, where p and q are
31               /// parameters of G1
32   bool neg;   ///< 8-bit integer representing a Boolean value
33   FfElement* g[3][5];  ///< 15 elements in Fq2
34   FiniteField* Fq;     ///< Fq
35   FiniteField* Fq2;    ///< Fq2
36   FiniteField* Fq6;    ///< Fq6
37 };
38 
39 #endif  // EPID_COMMON_MATH_SRC_PAIRING_INTERNAL_H_
40