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