51#ifndef MBEDTLS_PKCS5_H
52#define MBEDTLS_PKCS5_H
54#if !defined(MBEDTLS_CONFIG_FILE)
57#include MBEDTLS_CONFIG_FILE
66#define MBEDTLS_ERR_PKCS5_BAD_INPUT_DATA -0x2f80
67#define MBEDTLS_ERR_PKCS5_INVALID_FORMAT -0x2f00
68#define MBEDTLS_ERR_PKCS5_FEATURE_UNAVAILABLE -0x2e80
69#define MBEDTLS_ERR_PKCS5_PASSWORD_MISMATCH -0x2e00
71#define MBEDTLS_PKCS5_DECRYPT 0
72#define MBEDTLS_PKCS5_ENCRYPT 1
78#if defined(MBEDTLS_ASN1_PARSE_C)
94 const unsigned char *
pwd,
size_t pwdlen,
96 unsigned char *output );
115 size_t plen,
const unsigned char *salt,
size_t slen,
116 unsigned int iteration_count,
119#if defined(MBEDTLS_SELF_TEST)
126int mbedtls_pkcs5_self_test(
int verbose );
void pwd(int argc, const char *argv[])
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
int const JOCTET unsigned int datalen
This file contains the generic message-digest wrapper.
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)
PKCS#5 PBKDF2 using HMAC.
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)
PKCS#5 PBES2 function.