presig_8c.html 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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/member/presig.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('presig_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">presig.c File Reference</div> </div>
  65. </div><!--header-->
  66. <div class="contents">
  67. <p>EpidComputePreSig implementation.
  68. <a href="#details">More...</a></p>
  69. <div class="textblock"><code>#include &quot;<a class="el" href="member_2context_8h.html">epid/member/context.h</a>&quot;</code><br />
  70. </div><table class="memberdecls">
  71. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
  72. Macros</h2></td></tr>
  73. <tr class="memitem:a5638f861b82f1746ea1af0b384ef8ff1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="presig_8c.html#a5638f861b82f1746ea1af0b384ef8ff1">BREAK_ON_EPID_ERROR</a>(ret)</td></tr>
  74. <tr class="memdesc:a5638f861b82f1746ea1af0b384ef8ff1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handle SDK Error with Break. <a href="#a5638f861b82f1746ea1af0b384ef8ff1">More...</a><br /></td></tr>
  75. <tr class="separator:a5638f861b82f1746ea1af0b384ef8ff1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  76. <tr class="memitem:ac362b8d551a6a185f226af3be3d931f8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac362b8d551a6a185f226af3be3d931f8"></a>
  77. #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="presig_8c.html#ac362b8d551a6a185f226af3be3d931f8">COUNT_OF</a>(A)&#160;&#160;&#160;(sizeof(A) / sizeof((A)[0]))</td></tr>
  78. <tr class="memdesc:ac362b8d551a6a185f226af3be3d931f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Count of elements in array. <br /></td></tr>
  79. <tr class="separator:ac362b8d551a6a185f226af3be3d931f8"><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:a0423e8400abd2171062e4c42b90b8145"><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="presig_8c.html#a0423e8400abd2171062e4c42b90b8145">EpidComputePreSig</a> (<a class="el" href="struct_member_ctx.html">MemberCtx</a> const *ctx, <a class="el" href="struct_pre_computed_signature.html">PreComputedSignature</a> *precompsig)</td></tr>
  84. <tr class="memdesc:a0423e8400abd2171062e4c42b90b8145"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs Pre-computation that can be used to speed up signing. <a href="#a0423e8400abd2171062e4c42b90b8145">More...</a><br /></td></tr>
  85. <tr class="separator:a0423e8400abd2171062e4c42b90b8145"><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>EpidComputePreSig implementation. </p>
  89. </div><h2 class="groupheader">Macro Definition Documentation</h2>
  90. <a class="anchor" id="a5638f861b82f1746ea1af0b384ef8ff1"></a>
  91. <div class="memitem">
  92. <div class="memproto">
  93. <table class="memname">
  94. <tr>
  95. <td class="memname">#define BREAK_ON_EPID_ERROR</td>
  96. <td>(</td>
  97. <td class="paramtype">&#160;</td>
  98. <td class="paramname">ret</td><td>)</td>
  99. <td></td>
  100. </tr>
  101. </table>
  102. </div><div class="memdoc">
  103. <b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">if</span> (<a class="code" href="group___error_codes.html#ggafdb27c77c2c4b32c807e326a8a0da360a8a6861e14322ca9193498ffc955537f9">kEpidNoErr</a> != (ret)) { \</div><div class="line"> break; \</div><div class="line"> }</div><div class="ttc" id="group___error_codes_html_ggafdb27c77c2c4b32c807e326a8a0da360a8a6861e14322ca9193498ffc955537f9"><div class="ttname"><a href="group___error_codes.html#ggafdb27c77c2c4b32c807e326a8a0da360a8a6861e14322ca9193498ffc955537f9">kEpidNoErr</a></div><div class="ttdoc">no error </div><div class="ttdef"><b>Definition:</b> errors.h:41</div></div>
  104. </div><!-- fragment -->
  105. <p>Handle SDK Error with Break. </p>
  106. </div>
  107. </div>
  108. <h2 class="groupheader">Function Documentation</h2>
  109. <a class="anchor" id="a0423e8400abd2171062e4c42b90b8145"></a>
  110. <div class="memitem">
  111. <div class="memproto">
  112. <table class="memname">
  113. <tr>
  114. <td class="memname"><a class="el" href="group___error_codes.html#gafdb27c77c2c4b32c807e326a8a0da360">EpidStatus</a> EpidComputePreSig </td>
  115. <td>(</td>
  116. <td class="paramtype"><a class="el" href="struct_member_ctx.html">MemberCtx</a> const *&#160;</td>
  117. <td class="paramname"><em>ctx</em>, </td>
  118. </tr>
  119. <tr>
  120. <td class="paramkey"></td>
  121. <td></td>
  122. <td class="paramtype"><a class="el" href="struct_pre_computed_signature.html">PreComputedSignature</a> *&#160;</td>
  123. <td class="paramname"><em>precompsig</em>&#160;</td>
  124. </tr>
  125. <tr>
  126. <td></td>
  127. <td>)</td>
  128. <td></td><td></td>
  129. </tr>
  130. </table>
  131. </div><div class="memdoc">
  132. <p>Performs Pre-computation that can be used to speed up signing. </p>
  133. <dl class="section warning"><dt>Warning</dt><dd>Do not re-use the same pre-computed signature to generate more than one signature. If a pre-computed signature is used for computing two signatures, an attacker could learn the Intel(R) EPID private key.</dd></dl>
  134. <dl class="params"><dt>Parameters</dt><dd>
  135. <table class="params">
  136. <tr><td class="paramdir">[in]</td><td class="paramname">ctx</td><td>The member context. </td></tr>
  137. <tr><td class="paramdir">[out]</td><td class="paramname">precompsig</td><td>The pre-computed signature.</td></tr>
  138. </table>
  139. </dd>
  140. </dl>
  141. <dl class="section return"><dt>Returns</dt><dd><a class="el" href="group___error_codes.html#gafdb27c77c2c4b32c807e326a8a0da360" title="Return status for SDK functions. ">EpidStatus</a> </dd></dl>
  142. </div>
  143. </div>
  144. </div><!-- contents -->
  145. </div><!-- doc-content -->
  146. <!-- HTML footer for doxygen 1.8.10-->
  147. <!-- start footer part -->
  148. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  149. <ul>
  150. <li class="navelem"><a class="el" href="dir_12b90d9c027aaf878a834df729679a56.html">epid</a></li><li class="navelem"><a class="el" href="dir_512d3e62841a8535b716ec4cf8b9e950.html">member</a></li><li class="navelem"><a class="el" href="presig_8c.html">presig.c</a></li>
  151. <li class="footer">
  152. &copy; 2016 Intel Corporation
  153. </li>
  154. </ul>
  155. </div>
  156. </body>
  157. </html>