• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*############################################################################
2   # Copyright 2016 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 #ifndef EPID_COMMON_SRC_SIGRLVALID_H_
17 #define EPID_COMMON_SRC_SIGRLVALID_H_
18 /*!
19  * \file
20  * \brief SigRl validity checking interface.
21  * \addtogroup EpidCommon
22  * @{
23  */
24 
25 #include <stddef.h>
26 
27 #include "epid/common/stdtypes.h"
28 #include "epid/common/types.h"
29 
30 /// Function to verify if signature based revocation list is valid
31 /*!
32 
33   \param[in] gid
34   Group id
35   \param[in] sig_rl
36   Signature based revocation list
37   \param[in] sig_rl_size
38   Size of signature based revocation list
39 
40   \returns true if revocation list is valid
41   \returns false if revocation list is invalid
42 */
43 bool IsSigRlValid(GroupId const* gid, SigRl const* sig_rl, size_t sig_rl_size);
44 
45 /*! @} */
46 #endif  // EPID_COMMON_SRC_SIGRLVALID_H_
47