PolarSSL v1.2.5
pbkdf2.h
Go to the documentation of this file.
1 
29 #ifndef POLARSSL_PBKDF2_H
30 #define POLARSSL_PBKDF2_H
31 
32 #include <string.h>
33 
34 #include "md.h"
35 
36 #ifdef _MSC_VER
37 #include <basetsd.h>
38 typedef UINT32 uint32_t;
39 #else
40 #include <inttypes.h>
41 #endif
42 
43 #define POLARSSL_ERR_PBKDF2_BAD_INPUT_DATA -0x007C
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
63 int pbkdf2_hmac( md_context_t *ctx, const unsigned char *password,
64  size_t plen, const unsigned char *salt, size_t slen,
65  unsigned int iteration_count,
66  uint32_t key_length, unsigned char *output );
67 
68 
74 int pbkdf2_self_test( int verbose );
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif /* pbkdf2.h */