presig-internal.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #ifndef EPID_MEMBER_SRC_PRESIG_INTERNAL_H_
  19. #define EPID_MEMBER_SRC_PRESIG_INTERNAL_H_
  20. #include "epid/common/errors.h"
  21. /// \cond
  22. typedef struct MemberCtx MemberCtx;
  23. typedef struct PreComputedSignature PreComputedSignature;
  24. /// \endcond
  25. /// Provides a precomputed signature
  26. /*!
  27. Provides and removes a pre-computed signatures from members's pool if
  28. available, otherwise provides a newly calculated a precomputed
  29. signature.
  30. \warning
  31. Pre-computed signatures must not be accessed outside of the secure
  32. boundary.
  33. \param[in,out] ctx
  34. The member context.
  35. \param[out] presig
  36. The pre-computed signature removed from members's pool
  37. \returns ::EpidStatus
  38. */
  39. EpidStatus MemberGetPreSig(MemberCtx* ctx, PreComputedSignature* presig);
  40. ///@}
  41. /*! @} */
  42. #endif // EPID_MEMBER_SRC_PRESIG_INTERNAL_H_