PolarSSL v1.3.9
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#if defined(_MSC_VER) && !defined(EFIX64) && !defined(EFI32)
38#include <basetsd.h>
39typedef UINT32 uint32_t;
40#else
41#include <inttypes.h>
42#endif
43
44#define POLARSSL_ERR_PBKDF2_BAD_INPUT_DATA -0x007C
46#ifdef __cplusplus
47extern "C" {
48#endif
49
65int 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
76int pbkdf2_self_test( int verbose );
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif /* pbkdf2.h */
Generic message digest wrapper.
int pbkdf2_hmac(md_context_t *ctx, const unsigned char *password, size_t plen, const unsigned char *salt, size_t slen, unsigned int iteration_count, uint32_t key_length, unsigned char *output)
PKCS#5 PBKDF2 using HMAC DEPRECATED: Use pkcs5_pbkdf2_hmac() instead!
int pbkdf2_self_test(int verbose)
Checkup routine DEPRECATED: Use pkcs5_self_test() instead!
Generic message digest context.
Definition: md.h:132