group__hcrypto__misc.html revision 226031
1226031Sstas<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2226031Sstas<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 3226031Sstas<title>Heimdal crypto library: hcrypto miscellaneous functions</title> 4226031Sstas<link href="doxygen.css" rel="stylesheet" type="text/css"> 5226031Sstas<link href="tabs.css" rel="stylesheet" type="text/css"> 6226031Sstas</head><body> 7226031Sstas<p> 8226031Sstas<a href="http://www.h5l.org/"><img src="http://www.h5l.org/keyhole-heimdal.png" alt="keyhole logo"/></a> 9226031Sstas</p> 10226031Sstas<!-- end of header marker --> 11226031Sstas<!-- Generated by Doxygen 1.5.6 --> 12226031Sstas<div class="navigation" id="top"> 13226031Sstas <div class="tabs"> 14226031Sstas <ul> 15226031Sstas <li><a href="index.html"><span>Main Page</span></a></li> 16226031Sstas <li><a href="modules.html"><span>Modules</span></a></li> 17226031Sstas <li><a href="examples.html"><span>Examples</span></a></li> 18226031Sstas </ul> 19226031Sstas </div> 20226031Sstas</div> 21226031Sstas<div class="contents"> 22226031Sstas<h1>hcrypto miscellaneous functions</h1><table border="0" cellpadding="0" cellspacing="0"> 23226031Sstas<tr><td></td></tr> 24226031Sstas<tr><td colspan="2"><br><h2>Functions</h2></td></tr> 25226031Sstas<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__hcrypto__misc.html#gece1627cc5535ef7b5e86e2f5a3eec04">PKCS5_PBKDF2_HMAC_SHA1</a> (const void *password, size_t password_len, const void *salt, size_t salt_len, unsigned long iter, size_t keylen, void *key)</td></tr> 26226031Sstas 27226031Sstas</table> 28226031Sstas<hr><a name="_details"></a><h2>Detailed Description</h2> 29226031Sstas<hr><h2>Function Documentation</h2> 30226031Sstas<a class="anchor" name="gece1627cc5535ef7b5e86e2f5a3eec04"></a><!-- doxytag: member="pkcs5.c::PKCS5_PBKDF2_HMAC_SHA1" ref="gece1627cc5535ef7b5e86e2f5a3eec04" args="(const void *password, size_t password_len, const void *salt, size_t salt_len, unsigned long iter, size_t keylen, void *key)" --> 31226031Sstas<div class="memitem"> 32226031Sstas<div class="memproto"> 33226031Sstas <table class="memname"> 34226031Sstas <tr> 35226031Sstas <td class="memname">int PKCS5_PBKDF2_HMAC_SHA1 </td> 36226031Sstas <td>(</td> 37226031Sstas <td class="paramtype">const void * </td> 38226031Sstas <td class="paramname"> <em>password</em>, </td> 39226031Sstas </tr> 40226031Sstas <tr> 41226031Sstas <td class="paramkey"></td> 42226031Sstas <td></td> 43226031Sstas <td class="paramtype">size_t </td> 44226031Sstas <td class="paramname"> <em>password_len</em>, </td> 45226031Sstas </tr> 46226031Sstas <tr> 47226031Sstas <td class="paramkey"></td> 48226031Sstas <td></td> 49226031Sstas <td class="paramtype">const void * </td> 50226031Sstas <td class="paramname"> <em>salt</em>, </td> 51226031Sstas </tr> 52226031Sstas <tr> 53226031Sstas <td class="paramkey"></td> 54226031Sstas <td></td> 55226031Sstas <td class="paramtype">size_t </td> 56226031Sstas <td class="paramname"> <em>salt_len</em>, </td> 57226031Sstas </tr> 58226031Sstas <tr> 59226031Sstas <td class="paramkey"></td> 60226031Sstas <td></td> 61226031Sstas <td class="paramtype">unsigned long </td> 62226031Sstas <td class="paramname"> <em>iter</em>, </td> 63226031Sstas </tr> 64226031Sstas <tr> 65226031Sstas <td class="paramkey"></td> 66226031Sstas <td></td> 67226031Sstas <td class="paramtype">size_t </td> 68226031Sstas <td class="paramname"> <em>keylen</em>, </td> 69226031Sstas </tr> 70226031Sstas <tr> 71226031Sstas <td class="paramkey"></td> 72226031Sstas <td></td> 73226031Sstas <td class="paramtype">void * </td> 74226031Sstas <td class="paramname"> <em>key</em></td><td> </td> 75226031Sstas </tr> 76226031Sstas <tr> 77226031Sstas <td></td> 78226031Sstas <td>)</td> 79226031Sstas <td></td><td></td><td></td> 80226031Sstas </tr> 81226031Sstas </table> 82226031Sstas</div> 83226031Sstas<div class="memdoc"> 84226031Sstas 85226031Sstas<p> 86226031SstasAs descriped in PKCS5, convert a password, salt, and iteration counter into a crypto key.<p> 87226031Sstas<dl compact><dt><b>Parameters:</b></dt><dd> 88226031Sstas <table border="0" cellspacing="2" cellpadding="0"> 89226031Sstas <tr><td valign="top"></td><td valign="top"><em>password</em> </td><td>Password. </td></tr> 90226031Sstas <tr><td valign="top"></td><td valign="top"><em>password_len</em> </td><td>Length of password. </td></tr> 91226031Sstas <tr><td valign="top"></td><td valign="top"><em>salt</em> </td><td>Salt </td></tr> 92226031Sstas <tr><td valign="top"></td><td valign="top"><em>salt_len</em> </td><td>Length of salt. </td></tr> 93226031Sstas <tr><td valign="top"></td><td valign="top"><em>iter</em> </td><td>iteration counter. </td></tr> 94226031Sstas <tr><td valign="top"></td><td valign="top"><em>keylen</em> </td><td>the output key length. </td></tr> 95226031Sstas <tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>the output key.</td></tr> 96226031Sstas </table> 97226031Sstas</dl> 98226031Sstas<dl class="return" compact><dt><b>Returns:</b></dt><dd>1 on success, non 1 on failure. </dd></dl> 99226031Sstas 100226031Sstas</div> 101226031Sstas</div><p> 102226031Sstas</div> 103226031Sstas<hr size="1"><address style="text-align: right;"><small> 104226031SstasGenerated on Sat Jul 30 13:45:37 2011 for Heimdal crypto library by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address> 105226031Sstas</body> 106226031Sstas</html> 107