Go to the documentation of this file.
29 #ifndef POLARSSL_PKCS5_H
30 #define POLARSSL_PKCS5_H
37 #if defined(_MSC_VER) && !defined(EFIX64) && !defined(EFI32)
39 typedef UINT32 uint32_t;
44 #define POLARSSL_ERR_PKCS5_BAD_INPUT_DATA -0x3f80
45 #define POLARSSL_ERR_PKCS5_INVALID_FORMAT -0x3f00
46 #define POLARSSL_ERR_PKCS5_FEATURE_UNAVAILABLE -0x3e80
47 #define POLARSSL_ERR_PKCS5_PASSWORD_MISMATCH -0x3e00
49 #define PKCS5_DECRYPT 0
50 #define PKCS5_ENCRYPT 1
70 const unsigned char *pwd,
size_t pwdlen,
71 const unsigned char *data,
size_t datalen,
72 unsigned char *output );
89 size_t plen,
const unsigned char *salt,
size_t slen,
90 unsigned int iteration_count,
91 uint32_t key_length,
unsigned char *output );