00001
00030
00031
00032
00033
00034
00035
00036
00037 #include "polarssl/config.h"
00038
00039 #if defined(POLARSSL_PBKDF2_C)
00040
00041 #include "polarssl/pbkdf2.h"
00042 #include "polarssl/pkcs5.h"
00043
00044 int pbkdf2_hmac( md_context_t *ctx, const unsigned char *password, size_t plen,
00045 const unsigned char *salt, size_t slen,
00046 unsigned int iteration_count,
00047 uint32_t key_length, unsigned char *output )
00048 {
00049 return pkcs5_pbkdf2_hmac( ctx, password, plen, salt, slen, iteration_count,
00050 key_length, output );
00051 }
00052
00053 #if defined(POLARSSL_SELF_TEST)
00054 int pbkdf2_self_test( int verbose )
00055 {
00056 return pkcs5_self_test( verbose );
00057 }
00058 #endif
00059
00060 #endif