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® Enhanced Privacy ID SDK: epid/member/tpm2/ibm_tss/commit.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/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&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® Enhanced Privacy ID SDK</a> 35 <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&dn=gpl-2.0.txt GPL-v2 */ 57$(document).ready(function(){initNavTree('commit_8c.html','');}); 58/* @license-end */ 59</script> 60<div id="doc-content"> 61<div class="header"> 62 <div class="summary"> 63<a href="#define-members">Macros</a> | 64<a href="#func-members">Functions</a> </div> 65 <div class="headertitle"> 66<div class="title">commit.c File Reference</div> </div> 67</div><!--header--> 68<div class="contents"> 69 70<p>Tpm2Commit implementation. 71<a href="#details">More...</a></p> 72<div class="textblock"><code>#include "<a class="el" href="commit_8h.html">epid/member/tpm2/commit.h</a>"</code><br /> 73<code>#include <tss2/TPM_Types.h></code><br /> 74<code>#include <tss2/tss.h></code><br /> 75<code>#include "<a class="el" href="ecgroup_8h.html">epid/common/math/ecgroup.h</a>"</code><br /> 76<code>#include "epid/common/src/epid2params.h"</code><br /> 77<code>#include "epid/common/src/memory.h"</code><br /> 78<code>#include "<a class="el" href="conversion_8h.html">epid/member/tpm2/ibm_tss/conversion.h</a>"</code><br /> 79<code>#include "<a class="el" href="printtss_8h.html">epid/member/tpm2/ibm_tss/printtss.h</a>"</code><br /> 80<code>#include "<a class="el" href="state_8h.html">epid/member/tpm2/ibm_tss/state.h</a>"</code><br /> 81</div><table class="memberdecls"> 82<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> 83Macros</h2></td></tr> 84<tr class="memitem:a5638f861b82f1746ea1af0b384ef8ff1"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="commit_8c.html#a5638f861b82f1746ea1af0b384ef8ff1">BREAK_ON_EPID_ERROR</a>(ret)</td></tr> 85<tr class="memdesc:a5638f861b82f1746ea1af0b384ef8ff1"><td class="mdescLeft"> </td><td class="mdescRight">Handle Intel(R) EPID Error with Break. <a href="#a5638f861b82f1746ea1af0b384ef8ff1">More...</a><br /></td></tr> 86<tr class="separator:a5638f861b82f1746ea1af0b384ef8ff1"><td class="memSeparator" colspan="2"> </td></tr> 87<tr class="memitem:aa6b8f3261ae9e2e1043380c192f7b5f0"><td class="memItemLeft" align="right" valign="top"><a id="aa6b8f3261ae9e2e1043380c192f7b5f0"></a> 88#define </td><td class="memItemRight" valign="bottom"><a class="el" href="commit_8c.html#aa6b8f3261ae9e2e1043380c192f7b5f0">BIT7</a>   0x080</td></tr> 89<tr class="memdesc:aa6b8f3261ae9e2e1043380c192f7b5f0"><td class="mdescLeft"> </td><td class="mdescRight">Bit 7 binary mask. <br /></td></tr> 90<tr class="separator:aa6b8f3261ae9e2e1043380c192f7b5f0"><td class="memSeparator" colspan="2"> </td></tr> 91<tr class="memitem:a5c80fc0389d18e76cf9f43cfe13b63c7"><td class="memItemLeft" align="right" valign="top"><a id="a5c80fc0389d18e76cf9f43cfe13b63c7"></a> 92#define </td><td class="memItemRight" valign="bottom"><a class="el" href="commit_8c.html#a5c80fc0389d18e76cf9f43cfe13b63c7">BITS0500</a>   0x3f</td></tr> 93<tr class="memdesc:a5c80fc0389d18e76cf9f43cfe13b63c7"><td class="mdescLeft"> </td><td class="mdescRight">Binary 00011111. <br /></td></tr> 94<tr class="separator:a5c80fc0389d18e76cf9f43cfe13b63c7"><td class="memSeparator" colspan="2"> </td></tr> 95</table><table class="memberdecls"> 96<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> 97Functions</h2></td></tr> 98<tr class="memitem:ga750e38b6d6cea1b05f605e476df065d9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___error_codes.html#gafdb27c77c2c4b32c807e326a8a0da360">EpidStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group___tpm2_module.html#ga750e38b6d6cea1b05f605e476df065d9">Tpm2Commit</a> (<a class="el" href="struct_tpm2_ctx.html">Tpm2Ctx</a> *ctx, <a class="el" href="group___ec_group_primitives.html#ga85c1d5e106031b385a6e23e598ac98fa">EcPoint</a> const *p1, void const *s2, size_t s2_len, <a class="el" href="group___finite_field_primitives.html#ga6cff5c7c06b07a87442b810ccc0a86fa">FfElement</a> const *y2, <a class="el" href="group___ec_group_primitives.html#ga85c1d5e106031b385a6e23e598ac98fa">EcPoint</a> *k, <a class="el" href="group___ec_group_primitives.html#ga85c1d5e106031b385a6e23e598ac98fa">EcPoint</a> *l, <a class="el" href="group___ec_group_primitives.html#ga85c1d5e106031b385a6e23e598ac98fa">EcPoint</a> *e, uint16_t *counter)</td></tr> 99<tr class="memdesc:ga750e38b6d6cea1b05f605e476df065d9"><td class="mdescLeft"> </td><td class="mdescRight">Performs TPM2_Commit TPM operation. <a href="group___tpm2_module.html#ga750e38b6d6cea1b05f605e476df065d9">More...</a><br /></td></tr> 100<tr class="separator:ga750e38b6d6cea1b05f605e476df065d9"><td class="memSeparator" colspan="2"> </td></tr> 101</table> 102<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> 103<div class="textblock"><p>Tpm2Commit implementation. </p> 104</div><h2 class="groupheader">Macro Definition Documentation</h2> 105<a id="a5638f861b82f1746ea1af0b384ef8ff1"></a> 106<h2 class="memtitle"><span class="permalink"><a href="#a5638f861b82f1746ea1af0b384ef8ff1">◆ </a></span>BREAK_ON_EPID_ERROR</h2> 107 108<div class="memitem"> 109<div class="memproto"> 110 <table class="memname"> 111 <tr> 112 <td class="memname">#define BREAK_ON_EPID_ERROR</td> 113 <td>(</td> 114 <td class="paramtype"> </td> 115 <td class="paramname">ret</td><td>)</td> 116 <td></td> 117 </tr> 118 </table> 119</div><div class="memdoc"> 120<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> 121</div><!-- fragment --> 122<p>Handle Intel(R) EPID Error with Break. </p> 123 124</div> 125</div> 126</div><!-- contents --> 127</div><!-- doc-content --> 128<!-- HTML footer for doxygen 1.8.10--> 129<!-- start footer part --> 130<div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> 131 <ul> 132 <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="dir_0d59f1b8006345e373e07b4691e0da76.html">tpm2</a></li><li class="navelem"><a class="el" href="dir_b7525369f2fbc378c6814b573b9a2bc3.html">ibm_tss</a></li><li class="navelem"><a class="el" href="commit_8c.html">commit.c</a></li> 133 <li class="footer"> 134 © 2016-2017 Intel Corporation 135 </li> 136 </ul> 137</div> 138</body> 139</html> 140