member_2context_8h.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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/context.h 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('member_2context_8h.html','');});
  57. </script>
  58. <div id="doc-content">
  59. <div class="header">
  60. <div class="summary">
  61. <a href="#nested-classes">Data Structures</a> &#124;
  62. <a href="#func-members">Functions</a> </div>
  63. <div class="headertitle">
  64. <div class="title">context.h File Reference</div> </div>
  65. </div><!--header-->
  66. <div class="contents">
  67. <p>Member context interface.
  68. <a href="#details">More...</a></p>
  69. <div class="textblock"><code>#include &lt;stddef.h&gt;</code><br />
  70. <code>#include &quot;<a class="el" href="member_2api_8h.html">epid/member/api.h</a>&quot;</code><br />
  71. <code>#include &quot;<a class="el" href="errors_8h.html">epid/common/errors.h</a>&quot;</code><br />
  72. <code>#include &quot;<a class="el" href="epid2params_8h.html">epid/common/epid2params.h</a>&quot;</code><br />
  73. <code>#include &quot;<a class="el" href="grouppubkey_8h.html">epid/common/grouppubkey.h</a>&quot;</code><br />
  74. <code>#include &quot;<a class="el" href="stack_8h.html">epid/common/stack.h</a>&quot;</code><br />
  75. <code>#include &quot;<a class="el" href="commitment_8h.html">epid/common/commitment.h</a>&quot;</code><br />
  76. <code>#include &quot;<a class="el" href="privkey_8h.html">epid/member/privkey.h</a>&quot;</code><br />
  77. </div><table class="memberdecls">
  78. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
  79. Data Structures</h2></td></tr>
  80. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_allowed_basename.html">AllowedBasename</a></td></tr>
  81. <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal implementation of base name. <a href="struct_allowed_basename.html#details">More...</a><br /></td></tr>
  82. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  83. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_member_ctx.html">MemberCtx</a></td></tr>
  84. <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Member context definition. <a href="struct_member_ctx.html#details">More...</a><br /></td></tr>
  85. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  86. </table><table class="memberdecls">
  87. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  88. Functions</h2></td></tr>
  89. <tr class="memitem:a5f956a682bdde4ea1459e01beae0e9f0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5f956a682bdde4ea1459e01beae0e9f0"></a>
  90. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="member_2context_8h.html#a5f956a682bdde4ea1459e01beae0e9f0">DeleteBasenames</a> (<a class="el" href="struct_allowed_basename.html">AllowedBasename</a> **rootnode)</td></tr>
  91. <tr class="memdesc:a5f956a682bdde4ea1459e01beae0e9f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete base name list. <br /></td></tr>
  92. <tr class="separator:a5f956a682bdde4ea1459e01beae0e9f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:a9ef563fb256bbdd0a08358fbfa0bde10"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ef563fb256bbdd0a08358fbfa0bde10"></a>
  94. <a class="el" href="group___error_codes.html#gafdb27c77c2c4b32c807e326a8a0da360">EpidStatus</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="member_2context_8h.html#a9ef563fb256bbdd0a08358fbfa0bde10">AddBasename</a> (<a class="el" href="struct_allowed_basename.html">AllowedBasename</a> **rootnode, void const *basename, size_t length)</td></tr>
  95. <tr class="memdesc:a9ef563fb256bbdd0a08358fbfa0bde10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add new base name to list. <br /></td></tr>
  96. <tr class="separator:a9ef563fb256bbdd0a08358fbfa0bde10"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:a15f1294cb5004433360eb6d1ab0b3322"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a15f1294cb5004433360eb6d1ab0b3322"></a>
  98. <a class="el" href="stdtypes_8h.html#ad5c9d4ba3dc37783a528b0925dc981a0">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="member_2context_8h.html#a15f1294cb5004433360eb6d1ab0b3322">ContainsBasename</a> (<a class="el" href="struct_allowed_basename.html">AllowedBasename</a> const *rootnode, void const *basename, size_t length)</td></tr>
  99. <tr class="memdesc:a15f1294cb5004433360eb6d1ab0b3322"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if given base name exist in the list. <br /></td></tr>
  100. <tr class="separator:a15f1294cb5004433360eb6d1ab0b3322"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. <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="member_2context_8h.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>
  102. <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>
  103. <tr class="separator:a0423e8400abd2171062e4c42b90b8145"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. </table>
  105. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  106. <div class="textblock"><p>Member context interface. </p>
  107. </div><h2 class="groupheader">Function Documentation</h2>
  108. <a class="anchor" id="a0423e8400abd2171062e4c42b90b8145"></a>
  109. <div class="memitem">
  110. <div class="memproto">
  111. <table class="memname">
  112. <tr>
  113. <td class="memname"><a class="el" href="group___error_codes.html#gafdb27c77c2c4b32c807e326a8a0da360">EpidStatus</a> EpidComputePreSig </td>
  114. <td>(</td>
  115. <td class="paramtype"><a class="el" href="struct_member_ctx.html">MemberCtx</a> const *&#160;</td>
  116. <td class="paramname"><em>ctx</em>, </td>
  117. </tr>
  118. <tr>
  119. <td class="paramkey"></td>
  120. <td></td>
  121. <td class="paramtype"><a class="el" href="struct_pre_computed_signature.html">PreComputedSignature</a> *&#160;</td>
  122. <td class="paramname"><em>precompsig</em>&#160;</td>
  123. </tr>
  124. <tr>
  125. <td></td>
  126. <td>)</td>
  127. <td></td><td></td>
  128. </tr>
  129. </table>
  130. </div><div class="memdoc">
  131. <p>Performs Pre-computation that can be used to speed up signing. </p>
  132. <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>
  133. <dl class="params"><dt>Parameters</dt><dd>
  134. <table class="params">
  135. <tr><td class="paramdir">[in]</td><td class="paramname">ctx</td><td>The member context. </td></tr>
  136. <tr><td class="paramdir">[out]</td><td class="paramname">precompsig</td><td>The pre-computed signature.</td></tr>
  137. </table>
  138. </dd>
  139. </dl>
  140. <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>
  141. </div>
  142. </div>
  143. </div><!-- contents -->
  144. </div><!-- doc-content -->
  145. <!-- HTML footer for doxygen 1.8.10-->
  146. <!-- start footer part -->
  147. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  148. <ul>
  149. <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="member_2context_8h.html">context.h</a></li>
  150. <li class="footer">
  151. &copy; 2016 Intel Corporation
  152. </li>
  153. </ul>
  154. </div>
  155. </body>
  156. </html>