Deleted Added
full compact
entropy.h (193149) entropy.h (204619)
1/*
2 * Copyright (C) 2004-2007, 2009 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 2000, 2001 Internet Software Consortium.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 * PERFORMANCE OF THIS SOFTWARE.
16 */
17
1/*
2 * Copyright (C) 2004-2007, 2009 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 2000, 2001 Internet Software Consortium.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 * PERFORMANCE OF THIS SOFTWARE.
16 */
17
18/* $Id: entropy.h,v 1.32.332.2 2009/01/18 23:47:41 tbox Exp $ */
18/* $Id: entropy.h,v 1.32.332.3 2009/10/19 02:46:07 marka Exp $ */
19
20#ifndef ISC_ENTROPY_H
21#define ISC_ENTROPY_H 1
22
23/*****
24 ***** Module Info
25 *****/
26

--- 150 unchanged lines hidden (view full) ---

177/*!<
178 * \brief Removes an entropy source from the entropy system.
179 */
180
181isc_result_t
182isc_entropy_createsamplesource(isc_entropy_t *ent,
183 isc_entropysource_t **sourcep);
184/*!<
19
20#ifndef ISC_ENTROPY_H
21#define ISC_ENTROPY_H 1
22
23/*****
24 ***** Module Info
25 *****/
26

--- 150 unchanged lines hidden (view full) ---

177/*!<
178 * \brief Removes an entropy source from the entropy system.
179 */
180
181isc_result_t
182isc_entropy_createsamplesource(isc_entropy_t *ent,
183 isc_entropysource_t **sourcep);
184/*!<
185 * \brief Create an entropy source that consists of samples. Each sample is added
186 * to the source via isc_entropy_addsamples(), below.
185 * \brief Create an entropy source that consists of samples. Each sample is
186 * added to the source via isc_entropy_addsamples(), below.
187 */
188
189isc_result_t
190isc_entropy_createcallbacksource(isc_entropy_t *ent,
191 isc_entropystart_t start,
192 isc_entropyget_t get,
193 isc_entropystop_t stop,
194 void *arg,

--- 54 unchanged lines hidden (view full) ---

249 * Honor the request from the caller to only return good data, any data,
250 * etc.
251 */
252
253void
254isc_entropy_putdata(isc_entropy_t *ent, void *data, unsigned int length,
255 isc_uint32_t entropy);
256/*!<
187 */
188
189isc_result_t
190isc_entropy_createcallbacksource(isc_entropy_t *ent,
191 isc_entropystart_t start,
192 isc_entropyget_t get,
193 isc_entropystop_t stop,
194 void *arg,

--- 54 unchanged lines hidden (view full) ---

249 * Honor the request from the caller to only return good data, any data,
250 * etc.
251 */
252
253void
254isc_entropy_putdata(isc_entropy_t *ent, void *data, unsigned int length,
255 isc_uint32_t entropy);
256/*!<
257 * \brief Add "length" bytes in "data" to the entropy pool, incrementing the pool's
258 * entropy count by "entropy."
257 * \brief Add "length" bytes in "data" to the entropy pool, incrementing the
258 * pool's entropy count by "entropy."
259 *
259 *
260 * These bytes will prime the pseudorandom portion even no entropy is actually
261 * added.
260 * These bytes will prime the pseudorandom portion even if no entropy is
261 * actually added.
262 */
263
264void
265isc_entropy_stats(isc_entropy_t *ent, FILE *out);
266/*!<
267 * \brief Dump some (trivial) stats to the stdio stream "out".
268 */
269

--- 45 unchanged lines hidden ---
262 */
263
264void
265isc_entropy_stats(isc_entropy_t *ent, FILE *out);
266/*!<
267 * \brief Dump some (trivial) stats to the stdio stream "out".
268 */
269

--- 45 unchanged lines hidden ---