octstr-testhelper.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. /*!
  17. * \file
  18. * \brief OctString handling utility interface.
  19. */
  20. #ifndef EPID_COMMON_TESTHELPER_OCTSTR_TESTHELPER_H_
  21. #define EPID_COMMON_TESTHELPER_OCTSTR_TESTHELPER_H_
  22. #include "epid/common/errors.h"
  23. #include "epid/common/types.h"
  24. /// Compares 2 OctStr256
  25. /*!
  26. if A==B, then pResult = 0
  27. if A > B, then pResult = 1
  28. if A < B, then pResult = 2
  29. \param[in] pA
  30. OctStr256 A
  31. \param[in] pB
  32. OctStr256 B
  33. \param[out] pResult
  34. Comparison Result
  35. \returns ::EpidStatus
  36. */
  37. EpidStatus Cmp_OctStr256(const OctStr256* pA, const OctStr256* pB,
  38. unsigned int* pResult);
  39. #endif // EPID_COMMON_TESTHELPER_OCTSTR_TESTHELPER_H_