Document PKCS5_PBKDF2_HMAC_SHA1.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23059 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-04-18 13:04:08 +00:00
parent 3bb3abd651
commit 62a2ca2f1e

View File

@@ -49,6 +49,22 @@ RCSID("$Id$");
#include <roken.h>
/**
* As descriped in PKCS5, convert a password, salt, and iteration counter into a crypto key.
*
* @param password Password.
* @param password_len Length of password.
* @param salt Salt
* @param salt_len Length of salt.
* @param iter iteration counter.
* @param keylen the output key length.
* @param key the output key.
*
* @return 1 on success, non 1 on failure.
*
* @ingroup hcrypto_misc
*/
int
PKCS5_PBKDF2_HMAC_SHA1(const void * password, size_t password_len,
const void * salt, size_t salt_len,