1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*############################################################################
- # Copyright 2017 Intel Corporation
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- ############################################################################*/
- /// Internal pre-computed signature APIs
- /*! \file */
- #ifndef EPID_MEMBER_SRC_PRESIG_INTERNAL_H_
- #define EPID_MEMBER_SRC_PRESIG_INTERNAL_H_
- #include "epid/common/errors.h"
- /// \cond
- typedef struct MemberCtx MemberCtx;
- typedef struct PreComputedSignature PreComputedSignature;
- /// \endcond
- /// Provides a precomputed signature
- /*!
- Provides and removes a pre-computed signatures from members's pool if
- available, otherwise provides a newly calculated a precomputed
- signature.
- \warning
- Pre-computed signatures must not be accessed outside of the secure
- boundary.
- \param[in,out] ctx
- The member context.
- \param[out] presig
- The pre-computed signature removed from members's pool
- \returns ::EpidStatus
- */
- EpidStatus MemberGetPreSig(MemberCtx* ctx, PreComputedSignature* presig);
- ///@}
- /*! @} */
- #endif // EPID_MEMBER_SRC_PRESIG_INTERNAL_H_
|