• 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 Intel(R) EPID 1.1 signature verification interface.
20  */
21 #ifndef EXAMPLE_VERIFYSIG_SRC_VERIFYSIG11_H_
22 #define EXAMPLE_VERIFYSIG_SRC_VERIFYSIG11_H_
23 
24 #include <stddef.h>
25 #include "epid/common/1.1/types.h"
26 #include "epid/common/errors.h"
27 
28 struct EpidCaCertificate;
29 
30 /// verify Intel(R) EPID 1.x signature
31 EpidStatus Verify11(Epid11Signature const* sig, size_t sig_len, void const* msg,
32                     size_t msg_len, void const* basename, size_t basename_len,
33                     void const* signed_priv_rl, size_t signed_priv_rl_size,
34                     void const* signed_sig_rl, size_t signed_sig_rl_size,
35                     void const* signed_grp_rl, size_t signed_grp_rl_size,
36                     void const* signed_pub_key, size_t signed_pub_key_size,
37                     struct EpidCaCertificate const* cacert,
38                     void** verifier_precomp, size_t* verifier_precomp_size);
39 
40 #endif  // EXAMPLE_VERIFYSIG_SRC_VERIFYSIG11_H_
41