sigrlvalid.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #include <stddef.h>
  25. #include "epid/common/stdtypes.h"
  26. #include "epid/common/types.h"
  27. /// Function to verify if signature based revocation list is valid
  28. /*!
  29. \param[in] gid
  30. Group id
  31. \param[in] sig_rl
  32. Signature based revocation list
  33. \param[in] sig_rl_size
  34. Size of signature based revocation list
  35. \returns true if revocation list is valid
  36. \returns false if revocation list is invalid
  37. */
  38. bool IsSigRlValid(GroupId const* gid, SigRl const* sig_rl, size_t sig_rl_size);
  39. /*! @} */
  40. #endif // EPID_COMMON_SRC_SIGRLVALID_H_