Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 9e72f3e7ecf68cce016a7c5c59e863d3 > files > 686

lib64polarssl-devel-1.3.8-1.mga4.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.5"/>
<title>PolarSSL v1.3.8: pkcs12.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 style="padding-left: 0.5em;">
   <div id="projectname">PolarSSL v1.3.8
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6a9bbd12bf4e19a18c45e270f8fae3fd.html">include</a></li><li class="navelem"><a class="el" href="dir_04272d44da4745cf8b8bfc767d6c6523.html">polarssl</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">pkcs12.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="pkcs12_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="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#ifndef POLARSSL_PKCS12_H</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_PKCS12_H</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="md_8h.html">md.h</a>&quot;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="cipher_8h.html">cipher.h</a>&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="asn1_8h.html">asn1.h</a>&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="pkcs12_8h.html#a0347624b3dbc3cbbb9bd7853247d2481">   36</a></span>&#160;<span class="preprocessor">#define POLARSSL_ERR_PKCS12_BAD_INPUT_DATA                 -0x1F80  </span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="pkcs12_8h.html#a1f7e0b02bbbdbf57a8eaf833373a3532">   37</a></span>&#160;<span class="preprocessor">#define POLARSSL_ERR_PKCS12_FEATURE_UNAVAILABLE            -0x1F00  </span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="pkcs12_8h.html#a0ff774a9a6812532a2d116e031f2215b">   38</a></span>&#160;<span class="preprocessor">#define POLARSSL_ERR_PKCS12_PBE_INVALID_FORMAT             -0x1E80  </span></div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="pkcs12_8h.html#ad616cb2d36ddaba56e5a2948ea7e667c">   39</a></span>&#160;<span class="preprocessor">#define POLARSSL_ERR_PKCS12_PASSWORD_MISMATCH              -0x1E00  </span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="pkcs12_8h.html#a0097fb65a04f5e2084cfd3adf89a82e1">   41</a></span>&#160;<span class="preprocessor">#define PKCS12_DERIVE_KEY       1   </span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="pkcs12_8h.html#ab7eb878060cdcbaf9ef6722a1b8eb955">   42</a></span>&#160;<span class="preprocessor">#define PKCS12_DERIVE_IV        2   </span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="pkcs12_8h.html#a63fe520ec518c16960a42ee4819f3977">   43</a></span>&#160;<span class="preprocessor">#define PKCS12_DERIVE_MAC_KEY   3   </span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="pkcs12_8h.html#a5b444102c7edd3a54436645d52706498">   45</a></span>&#160;<span class="preprocessor">#define PKCS12_PBE_DECRYPT      0</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="pkcs12_8h.html#a6cadcbe1c384d25892634c43169415bc">   46</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PKCS12_PBE_ENCRYPT      1</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="keywordtype">int</span> <a class="code" href="pkcs12_8h.html#a6778c7293311e3115f3801dda0e62366">pkcs12_pbe_sha1_rc4_128</a>( <a class="code" href="struct__asn1__buf.html">asn1_buf</a> *pbe_params, <span class="keywordtype">int</span> mode,</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;                             <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pwd,  <span class="keywordtype">size_t</span> pwdlen,</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;                             <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *input, <span class="keywordtype">size_t</span> len,</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;                             <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *output );</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="keywordtype">int</span> <a class="code" href="pkcs12_8h.html#a6b027317aa79e31a04b651e8c4f016cb">pkcs12_pbe</a>( <a class="code" href="struct__asn1__buf.html">asn1_buf</a> *pbe_params, <span class="keywordtype">int</span> mode,</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                <a class="code" href="cipher_8h.html#a806c82ed7e8b591dedc86093f38274e6">cipher_type_t</a> cipher_type, <a class="code" href="md_8h.html#af1fbbb67afa0daee4090cde8864e0b68">md_type_t</a> md_type,</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pwd,  <span class="keywordtype">size_t</span> pwdlen,</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *input, <span class="keywordtype">size_t</span> len,</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;                <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *output );</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="keywordtype">int</span> <a class="code" href="pkcs12_8h.html#a0a58f02d969231d126f8e97dbd705858">pkcs12_derivation</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *data, <span class="keywordtype">size_t</span> datalen,</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;                       <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pwd, <span class="keywordtype">size_t</span> pwdlen,</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;                       <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *salt, <span class="keywordtype">size_t</span> saltlen,</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;                       <a class="code" href="md_8h.html#af1fbbb67afa0daee4090cde8864e0b68">md_type_t</a> <a class="code" href="md_8h.html#aae13853f5988bdef5c27ee475ba1295f">md</a>, <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">int</span> iterations );</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor"></span>}</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* pkcs12.h */</span><span class="preprocessor"></span></div>
<div class="ttc" id="md_8h_html_aae13853f5988bdef5c27ee475ba1295f"><div class="ttname"><a href="md_8h.html#aae13853f5988bdef5c27ee475ba1295f">md</a></div><div class="ttdeci">int md(const md_info_t *md_info, const unsigned char *input, size_t ilen, unsigned char *output)</div><div class="ttdoc">Output = message_digest( input buffer ) </div></div>
<div class="ttc" id="pkcs12_8h_html_a6b027317aa79e31a04b651e8c4f016cb"><div class="ttname"><a href="pkcs12_8h.html#a6b027317aa79e31a04b651e8c4f016cb">pkcs12_pbe</a></div><div class="ttdeci">int pkcs12_pbe(asn1_buf *pbe_params, int mode, cipher_type_t cipher_type, md_type_t md_type, const unsigned char *pwd, size_t pwdlen, const unsigned char *input, size_t len, unsigned char *output)</div><div class="ttdoc">PKCS12 Password Based function (encryption / decryption) for cipher-based and md-based PBE&amp;#39;s...</div></div>
<div class="ttc" id="md_8h_html_af1fbbb67afa0daee4090cde8864e0b68"><div class="ttname"><a href="md_8h.html#af1fbbb67afa0daee4090cde8864e0b68">md_type_t</a></div><div class="ttdeci">md_type_t</div><div class="ttdef"><b>Definition:</b> <a href="md_8h_source.html#l00051">md.h:51</a></div></div>
<div class="ttc" id="asn1_8h_html"><div class="ttname"><a href="asn1_8h.html">asn1.h</a></div><div class="ttdoc">Generic ASN.1 parsing. </div></div>
<div class="ttc" id="cipher_8h_html_a806c82ed7e8b591dedc86093f38274e6"><div class="ttname"><a href="cipher_8h.html#a806c82ed7e8b591dedc86093f38274e6">cipher_type_t</a></div><div class="ttdeci">cipher_type_t</div><div class="ttdef"><b>Definition:</b> <a href="cipher_8h_source.html#l00082">cipher.h:82</a></div></div>
<div class="ttc" id="pkcs12_8h_html_a0a58f02d969231d126f8e97dbd705858"><div class="ttname"><a href="pkcs12_8h.html#a0a58f02d969231d126f8e97dbd705858">pkcs12_derivation</a></div><div class="ttdeci">int pkcs12_derivation(unsigned char *data, size_t datalen, const unsigned char *pwd, size_t pwdlen, const unsigned char *salt, size_t saltlen, md_type_t md, int id, int iterations)</div><div class="ttdoc">The PKCS#12 derivation function uses a password and a salt to produce pseudo-random bits for a partic...</div></div>
<div class="ttc" id="cipher_8h_html"><div class="ttname"><a href="cipher_8h.html">cipher.h</a></div><div class="ttdoc">Generic cipher wrapper. </div></div>
<div class="ttc" id="md_8h_html"><div class="ttname"><a href="md_8h.html">md.h</a></div><div class="ttdoc">Generic message digest wrapper. </div></div>
<div class="ttc" id="struct__asn1__buf_html"><div class="ttname"><a href="struct__asn1__buf.html">_asn1_buf</a></div><div class="ttdoc">Type-length-value structure that allows for ASN1 using DER. </div><div class="ttdef"><b>Definition:</b> <a href="asn1_8h_source.html#l00124">asn1.h:124</a></div></div>
<div class="ttc" id="pkcs12_8h_html_a6778c7293311e3115f3801dda0e62366"><div class="ttname"><a href="pkcs12_8h.html#a6778c7293311e3115f3801dda0e62366">pkcs12_pbe_sha1_rc4_128</a></div><div class="ttdeci">int pkcs12_pbe_sha1_rc4_128(asn1_buf *pbe_params, int mode, const unsigned char *pwd, size_t pwdlen, const unsigned char *input, size_t len, unsigned char *output)</div><div class="ttdoc">PKCS12 Password Based function (encryption / decryption) for pbeWithSHAAnd128BitRC4. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jul 31 2014 11:35:51 for PolarSSL v1.3.8 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>