Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > e405d5f6b10a3a92bd2c28c4aa026c70 > files > 236

lib64mbedtls-devel-2.6.0-1.mga6.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mbed TLS v2.6.0: ecdh.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">mbed TLS v2.6.0
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_b4d146e9a6d8dd56ed4afb2480a97fd3.html">mbedtls</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ecdh.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="ecdh_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef MBEDTLS_ECDH_H</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define MBEDTLS_ECDH_H</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ecp_8h.html">ecp.h</a>&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="ecdh_8h.html#ae5df12f2068df09a102e05e02fb1e39c">   35</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;{</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="ecdh_8h.html#ae5df12f2068df09a102e05e02fb1e39ca28e1b43484f53d02de24809228780703">   37</a></span>&#160;    <a class="code" href="ecdh_8h.html#ae5df12f2068df09a102e05e02fb1e39ca28e1b43484f53d02de24809228780703">MBEDTLS_ECDH_OURS</a>,</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="ecdh_8h.html#ae5df12f2068df09a102e05e02fb1e39caee83a43a270657fc7dc2f26c91d2addb">   38</a></span>&#160;    <a class="code" href="ecdh_8h.html#ae5df12f2068df09a102e05e02fb1e39caee83a43a270657fc7dc2f26c91d2addb">MBEDTLS_ECDH_THEIRS</a>,</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;} <a class="code" href="ecdh_8h.html#ae5df12f2068df09a102e05e02fb1e39c">mbedtls_ecdh_side</a>;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structmbedtls__ecdh__context.html">   44</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;{</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structmbedtls__ecdh__context.html#a9fd1b03576203de87a92a2d49a4d20ed">   46</a></span>&#160;    <a class="code" href="structmbedtls__ecp__group.html">mbedtls_ecp_group</a> <a class="code" href="structmbedtls__ecdh__context.html#a9fd1b03576203de87a92a2d49a4d20ed">grp</a>;      </div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structmbedtls__ecdh__context.html#a22e51b2ea7d4728e48e8897535831cf4">   47</a></span>&#160;    <a class="code" href="structmbedtls__mpi.html">mbedtls_mpi</a> <a class="code" href="structmbedtls__ecdh__context.html#a22e51b2ea7d4728e48e8897535831cf4">d</a>;              </div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structmbedtls__ecdh__context.html#af2657e12e87be5b3e73bcf1ea2941d0b">   48</a></span>&#160;    <a class="code" href="structmbedtls__ecp__point.html">mbedtls_ecp_point</a> <a class="code" href="structmbedtls__ecdh__context.html#af2657e12e87be5b3e73bcf1ea2941d0b">Q</a>;        </div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structmbedtls__ecdh__context.html#a64ecde7d95dcc725d6af5f8e3ce542ca">   49</a></span>&#160;    <a class="code" href="structmbedtls__ecp__point.html">mbedtls_ecp_point</a> <a class="code" href="structmbedtls__ecdh__context.html#a64ecde7d95dcc725d6af5f8e3ce542ca">Qp</a>;       </div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structmbedtls__ecdh__context.html#abfd253d99f23c57cbeafc41985db764c">   50</a></span>&#160;    <a class="code" href="structmbedtls__mpi.html">mbedtls_mpi</a> <a class="code" href="structmbedtls__ecdh__context.html#abfd253d99f23c57cbeafc41985db764c">z</a>;              </div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structmbedtls__ecdh__context.html#ae7ae7b0231e898b0d973df360aea8f17">   51</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structmbedtls__ecdh__context.html#ae7ae7b0231e898b0d973df360aea8f17">point_format</a>;   </div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structmbedtls__ecdh__context.html#a6e374b0be49dce0fb02ca8ccfbfe1fee">   52</a></span>&#160;    <a class="code" href="structmbedtls__ecp__point.html">mbedtls_ecp_point</a> <a class="code" href="structmbedtls__ecdh__context.html#a6e374b0be49dce0fb02ca8ccfbfe1fee">Vi</a>;       </div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structmbedtls__ecdh__context.html#a2ee12052791b2f212047a16b4e0dcc77">   53</a></span>&#160;    <a class="code" href="structmbedtls__ecp__point.html">mbedtls_ecp_point</a> <a class="code" href="structmbedtls__ecdh__context.html#a2ee12052791b2f212047a16b4e0dcc77">Vf</a>;       </div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structmbedtls__ecdh__context.html#af5412a43eb79b11a6cc13c3a9af55e13">   54</a></span>&#160;    <a class="code" href="structmbedtls__mpi.html">mbedtls_mpi</a> <a class="code" href="structmbedtls__ecdh__context.html#af5412a43eb79b11a6cc13c3a9af55e13">_d</a>;             </div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;}</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<a class="code" href="structmbedtls__ecdh__context.html">mbedtls_ecdh_context</a>;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="keywordtype">int</span> <a class="code" href="ecdh_8h.html#a403a5d7363b6219a2017b837b665c354">mbedtls_ecdh_gen_public</a>( <a class="code" href="structmbedtls__ecp__group.html">mbedtls_ecp_group</a> *grp, <a class="code" href="structmbedtls__mpi.html">mbedtls_mpi</a> *d, <a class="code" href="structmbedtls__ecp__point.html">mbedtls_ecp_point</a> *Q,</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                     <span class="keywordtype">int</span> (*f_rng)(<span class="keywordtype">void</span> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *, <span class="keywordtype">size_t</span>),</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;                     <span class="keywordtype">void</span> *p_rng );</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keywordtype">int</span> <a class="code" href="ecdh_8h.html#aca0670e79f3002a218d6da8c8dee61e1">mbedtls_ecdh_compute_shared</a>( <a class="code" href="structmbedtls__ecp__group.html">mbedtls_ecp_group</a> *grp, <a class="code" href="structmbedtls__mpi.html">mbedtls_mpi</a> *z,</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;                         <span class="keyword">const</span> <a class="code" href="structmbedtls__ecp__point.html">mbedtls_ecp_point</a> *Q, <span class="keyword">const</span> <a class="code" href="structmbedtls__mpi.html">mbedtls_mpi</a> *d,</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                         <span class="keywordtype">int</span> (*f_rng)(<span class="keywordtype">void</span> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *, <span class="keywordtype">size_t</span>),</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                         <span class="keywordtype">void</span> *p_rng );</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="keywordtype">void</span> <a class="code" href="ecdh_8h.html#a97e787a12f7aae180ab9828303199dca">mbedtls_ecdh_init</a>( <a class="code" href="structmbedtls__ecdh__context.html">mbedtls_ecdh_context</a> *ctx );</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="keywordtype">void</span> <a class="code" href="ecdh_8h.html#a89cc40dc92fbbaf0275ea9a6184a5e71">mbedtls_ecdh_free</a>( <a class="code" href="structmbedtls__ecdh__context.html">mbedtls_ecdh_context</a> *ctx );</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="keywordtype">int</span> <a class="code" href="ecdh_8h.html#a784e56d5eea12e38374e9ce028692940">mbedtls_ecdh_make_params</a>( <a class="code" href="structmbedtls__ecdh__context.html">mbedtls_ecdh_context</a> *ctx, <span class="keywordtype">size_t</span> *olen,</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;                      <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> blen,</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                      <span class="keywordtype">int</span> (*f_rng)(<span class="keywordtype">void</span> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *, <span class="keywordtype">size_t</span>),</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                      <span class="keywordtype">void</span> *p_rng );</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="keywordtype">int</span> <a class="code" href="ecdh_8h.html#af07326ad0017bf6fcfb9f93e43641254">mbedtls_ecdh_read_params</a>( <a class="code" href="structmbedtls__ecdh__context.html">mbedtls_ecdh_context</a> *ctx,</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;                      <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> **buf, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *end );</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="keywordtype">int</span> <a class="code" href="ecdh_8h.html#a3c03b82213c39abd90a5bd4b1646441d">mbedtls_ecdh_get_params</a>( <a class="code" href="structmbedtls__ecdh__context.html">mbedtls_ecdh_context</a> *ctx, <span class="keyword">const</span> <a class="code" href="structmbedtls__ecp__keypair.html">mbedtls_ecp_keypair</a> *key,</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;                     mbedtls_ecdh_side side );</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="keywordtype">int</span> <a class="code" href="ecdh_8h.html#a417fd45ce78adb1b52027f995fa5ee57">mbedtls_ecdh_make_public</a>( <a class="code" href="structmbedtls__ecdh__context.html">mbedtls_ecdh_context</a> *ctx, <span class="keywordtype">size_t</span> *olen,</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;                      <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> blen,</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;                      <span class="keywordtype">int</span> (*f_rng)(<span class="keywordtype">void</span> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *, <span class="keywordtype">size_t</span>),</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                      <span class="keywordtype">void</span> *p_rng );</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="keywordtype">int</span> <a class="code" href="ecdh_8h.html#a9f417d90797b109d3036feb288e33207">mbedtls_ecdh_read_public</a>( <a class="code" href="structmbedtls__ecdh__context.html">mbedtls_ecdh_context</a> *ctx,</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;                      <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> blen );</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="keywordtype">int</span> <a class="code" href="ecdh_8h.html#a423fee27a0c8603bba336cbfe6dadcaa">mbedtls_ecdh_calc_secret</a>( <a class="code" href="structmbedtls__ecdh__context.html">mbedtls_ecdh_context</a> *ctx, <span class="keywordtype">size_t</span> *olen,</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;                      <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> blen,</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;                      <span class="keywordtype">int</span> (*f_rng)(<span class="keywordtype">void</span> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *, <span class="keywordtype">size_t</span>),</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;                      <span class="keywordtype">void</span> *p_rng );</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;}</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* ecdh.h */</span><span class="preprocessor"></span></div><div class="ttc" id="ecdh_8h_html_a784e56d5eea12e38374e9ce028692940"><div class="ttname"><a href="ecdh_8h.html#a784e56d5eea12e38374e9ce028692940">mbedtls_ecdh_make_params</a></div><div class="ttdeci">int mbedtls_ecdh_make_params(mbedtls_ecdh_context *ctx, size_t *olen, unsigned char *buf, size_t blen, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng)</div><div class="ttdoc">Generate a public key and a TLS ServerKeyExchange payload. </div></div>
<div class="ttc" id="structmbedtls__ecdh__context_html_abfd253d99f23c57cbeafc41985db764c"><div class="ttname"><a href="structmbedtls__ecdh__context.html#abfd253d99f23c57cbeafc41985db764c">mbedtls_ecdh_context::z</a></div><div class="ttdeci">mbedtls_mpi z</div><div class="ttdef"><b>Definition:</b> <a href="ecdh_8h_source.html#l00050">ecdh.h:50</a></div></div>
<div class="ttc" id="ecp_8h_html"><div class="ttname"><a href="ecp_8h.html">ecp.h</a></div><div class="ttdoc">Elliptic curves over GF(p) </div></div>
<div class="ttc" id="structmbedtls__ecdh__context_html_a22e51b2ea7d4728e48e8897535831cf4"><div class="ttname"><a href="structmbedtls__ecdh__context.html#a22e51b2ea7d4728e48e8897535831cf4">mbedtls_ecdh_context::d</a></div><div class="ttdeci">mbedtls_mpi d</div><div class="ttdef"><b>Definition:</b> <a href="ecdh_8h_source.html#l00047">ecdh.h:47</a></div></div>
<div class="ttc" id="ecdh_8h_html_a417fd45ce78adb1b52027f995fa5ee57"><div class="ttname"><a href="ecdh_8h.html#a417fd45ce78adb1b52027f995fa5ee57">mbedtls_ecdh_make_public</a></div><div class="ttdeci">int mbedtls_ecdh_make_public(mbedtls_ecdh_context *ctx, size_t *olen, unsigned char *buf, size_t blen, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng)</div><div class="ttdoc">Generate a public key and a TLS ClientKeyExchange payload. </div></div>
<div class="ttc" id="structmbedtls__ecp__keypair_html"><div class="ttname"><a href="structmbedtls__ecp__keypair.html">mbedtls_ecp_keypair</a></div><div class="ttdoc">ECP key pair structure. </div><div class="ttdef"><b>Definition:</b> <a href="ecp_8h_source.html#l00165">ecp.h:165</a></div></div>
<div class="ttc" id="ecdh_8h_html_ae5df12f2068df09a102e05e02fb1e39ca28e1b43484f53d02de24809228780703"><div class="ttname"><a href="ecdh_8h.html#ae5df12f2068df09a102e05e02fb1e39ca28e1b43484f53d02de24809228780703">MBEDTLS_ECDH_OURS</a></div><div class="ttdef"><b>Definition:</b> <a href="ecdh_8h_source.html#l00037">ecdh.h:37</a></div></div>
<div class="ttc" id="ecdh_8h_html_a89cc40dc92fbbaf0275ea9a6184a5e71"><div class="ttname"><a href="ecdh_8h.html#a89cc40dc92fbbaf0275ea9a6184a5e71">mbedtls_ecdh_free</a></div><div class="ttdeci">void mbedtls_ecdh_free(mbedtls_ecdh_context *ctx)</div><div class="ttdoc">Free context. </div></div>
<div class="ttc" id="structmbedtls__ecdh__context_html_af5412a43eb79b11a6cc13c3a9af55e13"><div class="ttname"><a href="structmbedtls__ecdh__context.html#af5412a43eb79b11a6cc13c3a9af55e13">mbedtls_ecdh_context::_d</a></div><div class="ttdeci">mbedtls_mpi _d</div><div class="ttdef"><b>Definition:</b> <a href="ecdh_8h_source.html#l00054">ecdh.h:54</a></div></div>
<div class="ttc" id="ecdh_8h_html_a9f417d90797b109d3036feb288e33207"><div class="ttname"><a href="ecdh_8h.html#a9f417d90797b109d3036feb288e33207">mbedtls_ecdh_read_public</a></div><div class="ttdeci">int mbedtls_ecdh_read_public(mbedtls_ecdh_context *ctx, const unsigned char *buf, size_t blen)</div><div class="ttdoc">Parse and process a TLS ClientKeyExchange payload. </div></div>
<div class="ttc" id="structmbedtls__ecp__group_html"><div class="ttname"><a href="structmbedtls__ecp__group.html">mbedtls_ecp_group</a></div><div class="ttdoc">ECP group structure. </div><div class="ttdef"><b>Definition:</b> <a href="ecp_8h_source.html#l00138">ecp.h:138</a></div></div>
<div class="ttc" id="ecdh_8h_html_aca0670e79f3002a218d6da8c8dee61e1"><div class="ttname"><a href="ecdh_8h.html#aca0670e79f3002a218d6da8c8dee61e1">mbedtls_ecdh_compute_shared</a></div><div class="ttdeci">int mbedtls_ecdh_compute_shared(mbedtls_ecp_group *grp, mbedtls_mpi *z, const mbedtls_ecp_point *Q, const mbedtls_mpi *d, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng)</div><div class="ttdoc">Compute shared secret Raw function that only does the core computation. </div></div>
<div class="ttc" id="structmbedtls__ecdh__context_html_a6e374b0be49dce0fb02ca8ccfbfe1fee"><div class="ttname"><a href="structmbedtls__ecdh__context.html#a6e374b0be49dce0fb02ca8ccfbfe1fee">mbedtls_ecdh_context::Vi</a></div><div class="ttdeci">mbedtls_ecp_point Vi</div><div class="ttdef"><b>Definition:</b> <a href="ecdh_8h_source.html#l00052">ecdh.h:52</a></div></div>
<div class="ttc" id="structmbedtls__ecdh__context_html_a9fd1b03576203de87a92a2d49a4d20ed"><div class="ttname"><a href="structmbedtls__ecdh__context.html#a9fd1b03576203de87a92a2d49a4d20ed">mbedtls_ecdh_context::grp</a></div><div class="ttdeci">mbedtls_ecp_group grp</div><div class="ttdef"><b>Definition:</b> <a href="ecdh_8h_source.html#l00046">ecdh.h:46</a></div></div>
<div class="ttc" id="ecdh_8h_html_a97e787a12f7aae180ab9828303199dca"><div class="ttname"><a href="ecdh_8h.html#a97e787a12f7aae180ab9828303199dca">mbedtls_ecdh_init</a></div><div class="ttdeci">void mbedtls_ecdh_init(mbedtls_ecdh_context *ctx)</div><div class="ttdoc">Initialize context. </div></div>
<div class="ttc" id="ecdh_8h_html_a403a5d7363b6219a2017b837b665c354"><div class="ttname"><a href="ecdh_8h.html#a403a5d7363b6219a2017b837b665c354">mbedtls_ecdh_gen_public</a></div><div class="ttdeci">int mbedtls_ecdh_gen_public(mbedtls_ecp_group *grp, mbedtls_mpi *d, mbedtls_ecp_point *Q, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng)</div><div class="ttdoc">Generate a public key. </div></div>
<div class="ttc" id="ecdh_8h_html_ae5df12f2068df09a102e05e02fb1e39c"><div class="ttname"><a href="ecdh_8h.html#ae5df12f2068df09a102e05e02fb1e39c">mbedtls_ecdh_side</a></div><div class="ttdeci">mbedtls_ecdh_side</div><div class="ttdoc">When importing from an EC key, select if it is our key or the peer&amp;#39;s key. </div><div class="ttdef"><b>Definition:</b> <a href="ecdh_8h_source.html#l00035">ecdh.h:35</a></div></div>
<div class="ttc" id="ecdh_8h_html_af07326ad0017bf6fcfb9f93e43641254"><div class="ttname"><a href="ecdh_8h.html#af07326ad0017bf6fcfb9f93e43641254">mbedtls_ecdh_read_params</a></div><div class="ttdeci">int mbedtls_ecdh_read_params(mbedtls_ecdh_context *ctx, const unsigned char **buf, const unsigned char *end)</div><div class="ttdoc">Parse and procress a TLS ServerKeyExhange payload. </div></div>
<div class="ttc" id="structmbedtls__ecdh__context_html_ae7ae7b0231e898b0d973df360aea8f17"><div class="ttname"><a href="structmbedtls__ecdh__context.html#ae7ae7b0231e898b0d973df360aea8f17">mbedtls_ecdh_context::point_format</a></div><div class="ttdeci">int point_format</div><div class="ttdef"><b>Definition:</b> <a href="ecdh_8h_source.html#l00051">ecdh.h:51</a></div></div>
<div class="ttc" id="structmbedtls__ecdh__context_html"><div class="ttname"><a href="structmbedtls__ecdh__context.html">mbedtls_ecdh_context</a></div><div class="ttdoc">ECDH context structure. </div><div class="ttdef"><b>Definition:</b> <a href="ecdh_8h_source.html#l00044">ecdh.h:44</a></div></div>
<div class="ttc" id="structmbedtls__ecdh__context_html_a64ecde7d95dcc725d6af5f8e3ce542ca"><div class="ttname"><a href="structmbedtls__ecdh__context.html#a64ecde7d95dcc725d6af5f8e3ce542ca">mbedtls_ecdh_context::Qp</a></div><div class="ttdeci">mbedtls_ecp_point Qp</div><div class="ttdef"><b>Definition:</b> <a href="ecdh_8h_source.html#l00049">ecdh.h:49</a></div></div>
<div class="ttc" id="structmbedtls__ecdh__context_html_af2657e12e87be5b3e73bcf1ea2941d0b"><div class="ttname"><a href="structmbedtls__ecdh__context.html#af2657e12e87be5b3e73bcf1ea2941d0b">mbedtls_ecdh_context::Q</a></div><div class="ttdeci">mbedtls_ecp_point Q</div><div class="ttdef"><b>Definition:</b> <a href="ecdh_8h_source.html#l00048">ecdh.h:48</a></div></div>
<div class="ttc" id="structmbedtls__ecdh__context_html_a2ee12052791b2f212047a16b4e0dcc77"><div class="ttname"><a href="structmbedtls__ecdh__context.html#a2ee12052791b2f212047a16b4e0dcc77">mbedtls_ecdh_context::Vf</a></div><div class="ttdeci">mbedtls_ecp_point Vf</div><div class="ttdef"><b>Definition:</b> <a href="ecdh_8h_source.html#l00053">ecdh.h:53</a></div></div>
<div class="ttc" id="structmbedtls__mpi_html"><div class="ttname"><a href="structmbedtls__mpi.html">mbedtls_mpi</a></div><div class="ttdoc">MPI structure. </div><div class="ttdef"><b>Definition:</b> <a href="bignum_8h_source.html#l00179">bignum.h:179</a></div></div>
<div class="ttc" id="ecdh_8h_html_a423fee27a0c8603bba336cbfe6dadcaa"><div class="ttname"><a href="ecdh_8h.html#a423fee27a0c8603bba336cbfe6dadcaa">mbedtls_ecdh_calc_secret</a></div><div class="ttdeci">int mbedtls_ecdh_calc_secret(mbedtls_ecdh_context *ctx, size_t *olen, unsigned char *buf, size_t blen, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng)</div><div class="ttdoc">Derive and export the shared secret. </div></div>
<div class="ttc" id="structmbedtls__ecp__point_html"><div class="ttname"><a href="structmbedtls__ecp__point.html">mbedtls_ecp_point</a></div><div class="ttdoc">ECP point structure (jacobian coordinates) </div><div class="ttdef"><b>Definition:</b> <a href="ecp_8h_source.html#l00106">ecp.h:106</a></div></div>
<div class="ttc" id="ecdh_8h_html_a3c03b82213c39abd90a5bd4b1646441d"><div class="ttname"><a href="ecdh_8h.html#a3c03b82213c39abd90a5bd4b1646441d">mbedtls_ecdh_get_params</a></div><div class="ttdeci">int mbedtls_ecdh_get_params(mbedtls_ecdh_context *ctx, const mbedtls_ecp_keypair *key, mbedtls_ecdh_side side)</div><div class="ttdoc">Setup an ECDH context from an EC key. </div></div>
<div class="ttc" id="ecdh_8h_html_ae5df12f2068df09a102e05e02fb1e39caee83a43a270657fc7dc2f26c91d2addb"><div class="ttname"><a href="ecdh_8h.html#ae5df12f2068df09a102e05e02fb1e39caee83a43a270657fc7dc2f26c91d2addb">MBEDTLS_ECDH_THEIRS</a></div><div class="ttdef"><b>Definition:</b> <a href="ecdh_8h_source.html#l00038">ecdh.h:38</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Dec 28 2017 18:33:29 for mbed TLS v2.6.0 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>