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