ecdsa__verify_8c.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!-- HTML header for doxygen 1.8.10-->
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  6. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  7. <meta name="generator" content="Doxygen 1.8.11"/>
  8. <title>Intel&reg; Enhanced Privacy ID SDK: epid/common/math/ecdsa_verify.c File Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. $(document).ready(initResizable);
  18. $(window).load(resizeHeight);
  19. </script>
  20. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  21. <link href="epidstyle.css" rel="stylesheet" type="text/css"/>
  22. </head>
  23. <body>
  24. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  25. <div id="titlearea">
  26. <table cellspacing="0" cellpadding="0">
  27. <tbody>
  28. <tr style="height: 56px;">
  29. <td id="projectalign" style="padding-left: 0.5em;">
  30. <div id="projectname"><a
  31. onclick="storeLink('index.html')"
  32. id="projectlink"
  33. class="index.html"
  34. href="index.html">Intel&reg; Enhanced Privacy ID SDK</a>
  35. &#160;<span id="projectnumber">2.0.0</span>
  36. </div>
  37. </td>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </div>
  42. <!-- end header part -->
  43. <!-- Generated by Doxygen 1.8.11 -->
  44. </div><!-- top -->
  45. <div id="side-nav" class="ui-resizable side-nav-resizable">
  46. <div id="nav-tree">
  47. <div id="nav-tree-contents">
  48. <div id="nav-sync" class="sync"></div>
  49. </div>
  50. </div>
  51. <div id="splitbar" style="-moz-user-select:none;"
  52. class="ui-resizable-handle">
  53. </div>
  54. </div>
  55. <script type="text/javascript">
  56. $(document).ready(function(){initNavTree('ecdsa__verify_8c.html','');});
  57. </script>
  58. <div id="doc-content">
  59. <div class="header">
  60. <div class="summary">
  61. <a href="#define-members">Macros</a> &#124;
  62. <a href="#func-members">Functions</a> </div>
  63. <div class="headertitle">
  64. <div class="title">ecdsa_verify.c File Reference</div> </div>
  65. </div><!--header-->
  66. <div class="contents">
  67. <p>EcdsaVerifyBuffer implementation.
  68. <a href="#details">More...</a></p>
  69. <div class="textblock"><code>#include &quot;<a class="el" href="ecdsa_8h.html">epid/common/math/ecdsa.h</a>&quot;</code><br />
  70. <code>#include &quot;<a class="el" href="bignum_8h.html">epid/common/math/bignum.h</a>&quot;</code><br />
  71. <code>#include &quot;epid/common/math/bignum-internal.h&quot;</code><br />
  72. <code>#include &quot;<a class="el" href="memory_8h.html">epid/common/memory.h</a>&quot;</code><br />
  73. <code>#include &quot;ext/ipp/include/ippcp.h&quot;</code><br />
  74. </div><table class="memberdecls">
  75. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
  76. Macros</h2></td></tr>
  77. <tr class="memitem:a2a33926ecd5e3365607fe56acb4e997a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecdsa__verify_8c.html#a2a33926ecd5e3365607fe56acb4e997a">BREAK_ON_IPP_ERROR</a>(sts, ret)</td></tr>
  78. <tr class="memdesc:a2a33926ecd5e3365607fe56acb4e997a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handle Ipp Errors with Break. <a href="#a2a33926ecd5e3365607fe56acb4e997a">More...</a><br /></td></tr>
  79. <tr class="separator:a2a33926ecd5e3365607fe56acb4e997a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  80. </table><table class="memberdecls">
  81. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  82. Functions</h2></td></tr>
  83. <tr class="memitem:gaab68de7291db6e42a01e99c2fa40057f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___error_codes.html#gafdb27c77c2c4b32c807e326a8a0da360">EpidStatus</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___ecdsa_primitives.html#gaab68de7291db6e42a01e99c2fa40057f">EcdsaVerifyBuffer</a> (void const *buf, size_t buf_len, <a class="el" href="struct_ecdsa_public_key.html">EcdsaPublicKey</a> const *pubkey, <a class="el" href="struct_ecdsa_signature.html">EcdsaSignature</a> const *sig)</td></tr>
  84. <tr class="memdesc:gaab68de7291db6e42a01e99c2fa40057f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Verifies authenticity of a digital signature over a buffer. <a href="group___ecdsa_primitives.html#gaab68de7291db6e42a01e99c2fa40057f">More...</a><br /></td></tr>
  85. <tr class="separator:gaab68de7291db6e42a01e99c2fa40057f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  86. </table>
  87. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  88. <div class="textblock"><p>EcdsaVerifyBuffer implementation. </p>
  89. </div><h2 class="groupheader">Macro Definition Documentation</h2>
  90. <a class="anchor" id="a2a33926ecd5e3365607fe56acb4e997a"></a>
  91. <div class="memitem">
  92. <div class="memproto">
  93. <table class="memname">
  94. <tr>
  95. <td class="memname">#define BREAK_ON_IPP_ERROR</td>
  96. <td>(</td>
  97. <td class="paramtype">&#160;</td>
  98. <td class="paramname">sts, </td>
  99. </tr>
  100. <tr>
  101. <td class="paramkey"></td>
  102. <td></td>
  103. <td class="paramtype">&#160;</td>
  104. <td class="paramname">ret&#160;</td>
  105. </tr>
  106. <tr>
  107. <td></td>
  108. <td>)</td>
  109. <td></td><td></td>
  110. </tr>
  111. </table>
  112. </div><div class="memdoc">
  113. <b>Value:</b><div class="fragment"><div class="line">{ \</div><div class="line"> IppStatus temp_sts = (sts); \</div><div class="line"> if (ippStsNoErr != temp_sts) { \</div><div class="line"> (ret) = <a class="code" href="group___error_codes.html#ggafdb27c77c2c4b32c807e326a8a0da360a1739ecb620f4bede2e1b84e52a96cee6">kEpidMathErr</a>; \</div><div class="line"> break; \</div><div class="line"> } \</div><div class="line"> }</div><div class="ttc" id="group___error_codes_html_ggafdb27c77c2c4b32c807e326a8a0da360a1739ecb620f4bede2e1b84e52a96cee6"><div class="ttname"><a href="group___error_codes.html#ggafdb27c77c2c4b32c807e326a8a0da360a1739ecb620f4bede2e1b84e52a96cee6">kEpidMathErr</a></div><div class="ttdoc">internal math error </div><div class="ttdef"><b>Definition:</b> errors.h:53</div></div>
  114. </div><!-- fragment -->
  115. <p>Handle Ipp Errors with Break. </p>
  116. </div>
  117. </div>
  118. </div><!-- contents -->
  119. </div><!-- doc-content -->
  120. <!-- HTML footer for doxygen 1.8.10-->
  121. <!-- start footer part -->
  122. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  123. <ul>
  124. <li class="navelem"><a class="el" href="dir_12b90d9c027aaf878a834df729679a56.html">epid</a></li><li class="navelem"><a class="el" href="dir_f6bef457d5f671b6e774bfccc16651f6.html">common</a></li><li class="navelem"><a class="el" href="dir_f169ebf8da29290a918fa4b3f7151050.html">math</a></li><li class="navelem"><a class="el" href="ecdsa__verify_8c.html">ecdsa_verify.c</a></li>
  125. <li class="footer">
  126. &copy; 2016 Intel Corporation
  127. </li>
  128. </ul>
  129. </div>
  130. </body>
  131. </html>