12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #ifndef MBEDTLS_PKCS5_H
- #define MBEDTLS_PKCS5_H
- #include "asn1.h"
- #include "md.h"
- #include <stddef.h>
- #include <stdint.h>
- #define MBEDTLS_ERR_PKCS5_BAD_INPUT_DATA -0x2f80
- #define MBEDTLS_ERR_PKCS5_INVALID_FORMAT -0x2f00
- #define MBEDTLS_ERR_PKCS5_FEATURE_UNAVAILABLE -0x2e80
- #define MBEDTLS_ERR_PKCS5_PASSWORD_MISMATCH -0x2e00
- #define MBEDTLS_PKCS5_DECRYPT 0
- #define MBEDTLS_PKCS5_ENCRYPT 1
- #ifdef __cplusplus
- extern "C" {
- #endif
- int mbedtls_pkcs5_pbes2( const mbedtls_asn1_buf *pbe_params, int mode,
- const unsigned char *pwd, size_t pwdlen,
- const unsigned char *data, size_t datalen,
- unsigned char *output );
- int mbedtls_pkcs5_pbkdf2_hmac( mbedtls_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 );
- int mbedtls_pkcs5_self_test( int verbose );
- #ifdef __cplusplus
- }
- #endif
- #endif
|