• 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 Elliptic curve group private interface.
20  */
21 
22 #ifndef EPID_COMMON_MATH_SRC_ECGROUP_INTERNAL_H_
23 #define EPID_COMMON_MATH_SRC_ECGROUP_INTERNAL_H_
24 
25 #include "epid/common/math/src/finitefield-internal.h"
26 #include "ext/ipp/include/ippcp.h"
27 
28 /// Elpitic Curve Group
29 struct EcGroup {
30   /// Internal implementation of elliptic curve group
31   IppsGFpECState* ipp_ec;
32   /// Scratch buffer for operations over elliptic curve group
33   OctStr scratch_buffer;
34   /// Information about finite field of elliptic curve group
35   struct FiniteField* ff;
36 };
37 
38 /// Elpitic Curve Point
39 struct EcPoint {
40   /// Internal implementation of elliptic curve point
41   IppsGFpECPoint* ipp_ec_pt;
42   /// length of the finite field element of elliptic curve group
43   int element_len;
44 };
45 #endif  // EPID_COMMON_MATH_SRC_ECGROUP_INTERNAL_H_
46