• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.14"/>
8<title>Intel&reg; Enhanced Privacy ID SDK: common</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/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
18  $(document).ready(initResizable);
19/* @license-end */</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">6.0.1</span>
36</div>
37  </td>
38 </tr>
39 </tbody>
40</table>
41</div>
42<!-- end header part -->
43<!-- Generated by Doxygen 1.8.14 -->
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/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
57$(document).ready(function(){initNavTree('group___epid_common.html','');});
58/* @license-end */
59</script>
60<div id="doc-content">
61<div class="header">
62  <div class="summary">
63<a href="#groups">Modules</a> &#124;
64<a href="#typedef-members">Typedefs</a>  </div>
65  <div class="headertitle">
66<div class="title">common<div class="ingroups"><a class="el" href="group___epid_module.html">epid&amp;nbsp;</a></div></div>  </div>
67</div><!--header-->
68<div class="contents">
69
70<p>Common code shared between core sub-components.
71<a href="#details">More...</a></p>
72<table class="memberdecls">
73<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
74Modules</h2></td></tr>
75<tr class="memitem:group___epid_math"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___epid_math.html">math</a></td></tr>
76<tr class="memdesc:group___epid_math"><td class="mdescLeft">&#160;</td><td class="mdescRight">Math Primitives and Group Operations. <br /></td></tr>
77<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
78<tr class="memitem:group___error_codes"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___error_codes.html">errors</a></td></tr>
79<tr class="memdesc:group___error_codes"><td class="mdescLeft">&#160;</td><td class="mdescRight">Error reporting interface. <br /></td></tr>
80<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
81<tr class="memitem:group___file_parser"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___file_parser.html">fileparser</a></td></tr>
82<tr class="memdesc:group___file_parser"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parser for issuer material. <br /></td></tr>
83<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
84<tr class="memitem:group___epid_print"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___epid_print.html">print_utils</a></td></tr>
85<tr class="memdesc:group___epid_print"><td class="mdescLeft">&#160;</td><td class="mdescRight">Debug print routines. <br /></td></tr>
86<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
87<tr class="memitem:group___epid_types"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___epid_types.html">types</a></td></tr>
88<tr class="memdesc:group___epid_types"><td class="mdescLeft">&#160;</td><td class="mdescRight">SDK data types. <br /></td></tr>
89<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
90</table><table class="memberdecls">
91<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
92Typedefs</h2></td></tr>
93<tr class="memitem:ga6119a2c0323a3fca9e502b24bc378c2c"><td class="memItemLeft" align="right" valign="top">typedef int(__STDCALL *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___epid_common.html#ga6119a2c0323a3fca9e502b24bc378c2c">BitSupplier</a>) (unsigned int *rand_data, int num_bits, void *user_data)</td></tr>
94<tr class="memdesc:ga6119a2c0323a3fca9e502b24bc378c2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates random data.  <a href="#ga6119a2c0323a3fca9e502b24bc378c2c">More...</a><br /></td></tr>
95<tr class="separator:ga6119a2c0323a3fca9e502b24bc378c2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
96</table>
97<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
98<p>Common code shared between core sub-components. </p>
99<p>Constants, utility functions, and libraries that are used widely in the implementation or definition of APIs and samples. </p>
100<h2 class="groupheader">Typedef Documentation</h2>
101<a id="ga6119a2c0323a3fca9e502b24bc378c2c"></a>
102<h2 class="memtitle"><span class="permalink"><a href="#ga6119a2c0323a3fca9e502b24bc378c2c">&#9670;&nbsp;</a></span>BitSupplier</h2>
103
104<div class="memitem">
105<div class="memproto">
106      <table class="memname">
107        <tr>
108          <td class="memname">typedef int(__STDCALL* BitSupplier) (unsigned int *rand_data, int num_bits, void *user_data)</td>
109        </tr>
110      </table>
111</div><div class="memdoc">
112
113<p>Generates random data. </p>
114<p>The SDK provides the <a class="el" href="group___epid_common.html#ga6119a2c0323a3fca9e502b24bc378c2c" title="Generates random data. ">BitSupplier</a> as a function prototype so that you will know the requirements for your own implementation of a random number generator.</p>
115<p>You need to pass a pointer to your implementation of the random number generator into methods that require it.</p>
116<p>For an example of how a BitSupplier is created, see the <code>signmsg</code> example.</p>
117<dl class="params"><dt>Parameters</dt><dd>
118  <table class="params">
119    <tr><td class="paramdir">[out]</td><td class="paramname">rand_data</td><td>destination buffer for random data generated by BitSupplier. The buffer will receive <code>num_bits</code> of random data. </td></tr>
120    <tr><td class="paramdir">[in]</td><td class="paramname">num_bits</td><td>specifies the size of the random data, in bits, to be generated. </td></tr>
121    <tr><td class="paramdir">[in]</td><td class="paramname">user_data</td><td>user data that will be passed to the random number generator. The usage of this data is specific to the implementation of the BitSupplier. For example, this could be used to pass a pointer to a data structure that maintains state across calls to your BitSupplier.</td></tr>
122  </table>
123  </dd>
124</dl>
125<dl class="section return"><dt>Returns</dt><dd>zero on success and non-zero value on error. </dd></dl>
126
127</div>
128</div>
129</div><!-- contents -->
130</div><!-- doc-content -->
131<!-- HTML footer for doxygen 1.8.10-->
132<!-- start footer part -->
133<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
134  <ul>
135    <li class="footer">
136      &copy; 2016-2017 Intel Corporation
137    </li>
138  </ul>
139</div>
140</body>
141</html>
142