Apache HTTPD
apr_random.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_RANDOM_H
18#define APR_RANDOM_H
19
25#include "apr_pools.h"
26#include "apr_thread_proc.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* __cplusplus */
31
39
44 unsigned char *result);
45
46
47/* FIXME: make this opaque */
55
61
64
82
90 const void *entropy_,
99 void *random,
101
109 void *random,
117
124
131
146
149#ifdef __cplusplus
150}
151#endif
152
153#endif /* !APR_RANDOM_H */
APR memory allocation.
#define hash(h, r, b, n)
Definition apr_random.c:51
APR Thread and Process Library.
request_rec * r
apr_size_t size
int apr_status_t
Definition apr_errno.h:44
void * data
apr_array_header_t ** result
APR_DECLARE(void) apr_random_init(apr_random_t *g
Definition apr_pools.h:646
const void * entropy_
Definition apr_random.h:90
apr_pool_t * p
Definition apr_random.h:73
void apr_crypto_hash_add_t(apr_crypto_hash_t *hash, const void *data, apr_size_t bytes)
Definition apr_random.h:41
const void apr_size_t bytes
Definition apr_random.h:91
apr_pool_t apr_crypto_hash_t * pool_hash
Definition apr_random.h:74
apr_pool_t apr_crypto_hash_t apr_crypto_hash_t * key_hash
Definition apr_random.h:75
void apr_crypto_hash_finish_t(apr_crypto_hash_t *hash, unsigned char *result)
Definition apr_random.h:43
apr_pool_t apr_crypto_hash_t apr_crypto_hash_t apr_crypto_hash_t * prng_hash
Definition apr_random.h:76
void apr_crypto_hash_init_t(apr_crypto_hash_t *hash)
Definition apr_random.h:40
void * random
Definition apr_random.h:99
apr_proc_t * proc
apr_crypto_hash_init_t * init
Definition apr_random.h:49
apr_crypto_hash_add_t * add
Definition apr_random.h:50
apr_crypto_hash_finish_t * finish
Definition apr_random.h:51
apr_size_t size
Definition apr_random.h:52