Go to the documentation of this file.
29 #ifndef POLARSSL_PKCS5_H
30 #define POLARSSL_PKCS5_H
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
55 #define OID_PKCS5 "\x2a\x86\x48\x86\xf7\x0d\x01\x05"
56 #define OID_PKCS5_PBES2 OID_PKCS5 "\x0d"
57 #define OID_PKCS5_PBKDF2 OID_PKCS5 "\x0c"
62 #define OID_DES_CBC "\x2b\x0e\x03\x02\x07"
63 #define OID_DES_EDE3_CBC "\x2a\x86\x48\x86\xf7\x0d\x03\x07"
68 #define OID_HMAC_SHA1 "\x2a\x86\x48\x86\xf7\x0d\x02\x07"
88 const unsigned char *pwd,
size_t pwdlen,
89 const unsigned char *data,
size_t datalen,
90 unsigned char *output );
107 size_t plen,
const unsigned char *salt,
size_t slen,
108 unsigned int iteration_count,
109 uint32_t key_length,
unsigned char *output );