mbed TLS v1.3.11
pbkdf2.h
Go to the documentation of this file.
1 
28 #ifndef POLARSSL_PBKDF2_H
29 #define POLARSSL_PBKDF2_H
30 
31 #include "md.h"
32 
33 #include <stddef.h>
34 
35 #if defined(_MSC_VER) && !defined(EFIX64) && !defined(EFI32)
36 #include <basetsd.h>
37 typedef UINT32 uint32_t;
38 #else
39 #include <inttypes.h>
40 #endif
41 
42 #define POLARSSL_ERR_PBKDF2_BAD_INPUT_DATA -0x007C
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 #if ! defined(POLARSSL_DEPRECATED_REMOVED)
49 #if defined(POLARSSL_DEPRECATED_WARNING)
50 #define DEPRECATED __attribute__((deprecated))
51 #else
52 #define DEPRECATED
53 #endif
54 
70 int pbkdf2_hmac( md_context_t *ctx, const unsigned char *password,
71  size_t plen, const unsigned char *salt, size_t slen,
72  unsigned int iteration_count,
73  uint32_t key_length, unsigned char *output ) DEPRECATED;
74 
82 int pbkdf2_self_test( int verbose ) DEPRECATED;
83 #undef DEPRECATED
84 #endif /* POLARSSL_DEPRECATED_REMOVED */
85 
86 #ifdef __cplusplus
87 }
88 #endif
89 
90 #endif /* pbkdf2.h */
int pbkdf2_self_test(int verbose) DEPRECATED
Checkup routine.
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) DEPRECATED
PKCS#5 PBKDF2 using HMAC.
#define DEPRECATED
Definition: pbkdf2.h:52
Generic message digest wrapper.
Generic message digest context.
Definition: md.h:129