42 #ifndef APU_CRYPTO_RECOMMENDED_DRIVER
43 #if APU_HAVE_COMMONCRYPTO
44 #define APU_CRYPTO_RECOMMENDED_DRIVER "commoncrypto"
47 #define APU_CRYPTO_RECOMMENDED_DRIVER "openssl"
50 #define APU_CRYPTO_RECOMMENDED_DRIVER "nss"
53 #define APU_CRYPTO_RECOMMENDED_DRIVER "mscng"
56 #define APU_CRYPTO_RECOMMENDED_DRIVER "mscapi"
108 APR_KEY_NONE, APR_KEY_3DES_192,
113 } apr_crypto_block_key_type_e;
121 } apr_crypto_block_key_mode_e;
124 typedef struct apr_crypto_driver_t apr_crypto_driver_t;
125 typedef struct apr_crypto_t apr_crypto_t;
126 typedef struct apr_crypto_config_t apr_crypto_config_t;
127 typedef struct apr_crypto_key_t apr_crypto_key_t;
128 typedef struct apr_crypto_block_t apr_crypto_block_t;
168 const apr_crypto_driver_t **driver, const
char *name,
178 const apr_crypto_driver_t *driver);
188 const apr_crypto_t *f);
206 apr_crypto_make(apr_crypto_t **f, const apr_crypto_driver_t *driver,
218 const apr_crypto_t *f);
229 const apr_crypto_t *f);
260 apr_size_t *ivSize, const
char *pass, apr_size_t passLen,
261 const
unsigned char * salt, apr_size_t saltLen,
262 const apr_crypto_block_key_type_e type,
263 const apr_crypto_block_key_mode_e mode, const
int doPad,
264 const
int iterations, const apr_crypto_t *f,
apr_pool_t *p);
283 apr_crypto_block_t **ctx, const
unsigned char **iv,
284 const apr_crypto_key_t *key, apr_size_t *blockSize,
apr_pool_t *p);
305 apr_size_t *outlen, const
unsigned char *in, apr_size_t inlen,
306 apr_crypto_block_t *ctx);
327 apr_size_t *outlen, apr_crypto_block_t *ctx);
343 apr_crypto_block_t **ctx, apr_size_t *blockSize,
344 const
unsigned char *iv, const apr_crypto_key_t *key,
apr_pool_t *p);
365 apr_size_t *outlen, const
unsigned char *in, apr_size_t inlen,
366 apr_crypto_block_t *ctx);
387 apr_size_t *outlen, apr_crypto_block_t *ctx);
412 apr_crypto_shutdown(const apr_crypto_driver_t *driver);
struct apr_hash_t apr_hash_t
Definition: apr_hash.h:52
Definition: apu_errno.h:161
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
int apr_status_t
Definition: apr_errno.h:44