• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*############################################################################
2   # Copyright 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 /// Internal pre-computed signature APIs
17 /*! \file */
18 
19 #ifndef EPID_MEMBER_SRC_PRESIG_INTERNAL_H_
20 #define EPID_MEMBER_SRC_PRESIG_INTERNAL_H_
21 
22 #include "epid/common/errors.h"
23 
24 /// \cond
25 typedef struct MemberCtx MemberCtx;
26 typedef struct PreComputedSignature PreComputedSignature;
27 /// \endcond
28 
29 /// Provides a precomputed signature
30 /*!
31 
32   Provides and removes a pre-computed signatures from members's pool if
33   available, otherwise provides a newly calculated a precomputed
34   signature.
35 
36   \warning
37   Pre-computed signatures must not be accessed outside of the secure
38   boundary.
39 
40   \param[in,out] ctx
41   The member context.
42 
43   \param[out] presig
44   The pre-computed signature removed from members's pool
45 
46   \returns ::EpidStatus
47 
48  */
49 EpidStatus MemberGetPreSig(MemberCtx* ctx, PreComputedSignature* presig);
50 
51 ///@}
52 /*! @} */
53 #endif  // EPID_MEMBER_SRC_PRESIG_INTERNAL_H_
54