Apache HTTPD
apr_crypto_internal.h
Go to the documentation of this file.
1/* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef APR_CRYPTO_INTERNAL_H
18#define APR_CRYPTO_INTERNAL_H
19
20#include <stdarg.h>
21
22#include "apr_crypto.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#if APU_HAVE_CRYPTO
29
31
33 const char *name;
34
42 apr_status_t (*init)(apr_pool_t *pool, const char *params,
43 const apu_err_t **result);
44
58 const char *params, apr_pool_t *pool);
59
69 const apr_crypto_t *f);
70
80 const apr_crypto_t *f);
81
111 const char *pass, apr_size_t passLen, const unsigned char * salt,
113 const apr_crypto_block_key_mode_e mode, const int doPad,
114 const int iterations, const apr_crypto_t *f, apr_pool_t *p);
115
133 const unsigned char **iv, const apr_crypto_key_t *key,
135
154 apr_status_t (*block_encrypt)(unsigned char **out, apr_size_t *outlen,
155 const unsigned char *in, apr_size_t inlen, apr_crypto_block_t *ctx);
156
175 apr_status_t (*block_encrypt_finish)(unsigned char *out,
177
194 apr_size_t *blockSize, const unsigned char *iv,
196
215 apr_status_t (*block_decrypt)(unsigned char **out, apr_size_t *outlen,
216 const unsigned char *in, apr_size_t inlen, apr_crypto_block_t *ctx);
217
236 apr_status_t (*block_decrypt_finish)(unsigned char *out,
238
246
254
260 apr_status_t (*shutdown)(void);
261
268 apr_status_t (*error)(const apu_err_t **result, const apr_crypto_t *f);
269
287 const apr_crypto_t *f, apr_pool_t *p);
288
289};
290
291#endif
292
293#ifdef __cplusplus
294}
295#endif
296
297#endif
#define shutdown
APR-UTIL Crypto library.
const char * salt
Definition apr_md5.h:139
apr_file_t * f
apr_brigade_flush void * ctx
apr_pool_t const char apr_dbd_t const char ** error
Definition apr_dbd.h:143
apr_dbd_transaction_t int mode
Definition apr_dbd.h:261
apr_pool_t const char * params
Definition apr_dbd.h:141
apr_size_t size
const char int apr_pool_t * pool
Definition apr_cstr.h:84
int apr_status_t
Definition apr_errno.h:44
const char * key
void const char apr_status_t(* cleanup)(void *))
int type
apr_array_header_t ** result
void * rec
Definition apr_hash.h:270
apr_int32_t in
apr_pool_t * p
Definition md_event.c:32
static apr_file_t * out
Definition mod_info.c:85
static const char *const types[]
char * name