mem_params-testhelper.cc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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. /*!
  17. * \file
  18. * \brief Implementation of Intel(R) EPID specific predicates for Set MemParams
  19. * strcuture
  20. */
  21. #include "epid/common-testhelper/mem_params-testhelper.h"
  22. void SetMemberParams(BitSupplier rnd_func, void* rnd_param, const FpElemStr* f,
  23. MemberParams* params) {
  24. #ifdef TPM_TSS
  25. (void)rnd_func;
  26. (void)rnd_param;
  27. params->f = f;
  28. #else
  29. params->rnd_func = rnd_func;
  30. params->rnd_param = rnd_param;
  31. params->f = f;
  32. #endif
  33. }