yarrow.h revision 256381
11573Srgrimes/*-
214272Spst * Copyright (c) 2000-2013 Mark R V Murray
31573Srgrimes * All rights reserved.
41573Srgrimes *
51573Srgrimes * Redistribution and use in source and binary forms, with or without
61573Srgrimes * modification, are permitted provided that the following conditions
71573Srgrimes * are met:
81573Srgrimes * 1. Redistributions of source code must retain the above copyright
91573Srgrimes *    notice, this list of conditions and the following disclaimer
101573Srgrimes *    in this position and unchanged.
111573Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
121573Srgrimes *    notice, this list of conditions and the following disclaimer in the
131573Srgrimes *    documentation and/or other materials provided with the distribution.
141573Srgrimes *
151573Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
161573Srgrimes * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
171573Srgrimes * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
181573Srgrimes * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
191573Srgrimes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
201573Srgrimes * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
211573Srgrimes * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
221573Srgrimes * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
231573Srgrimes * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
241573Srgrimes * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
251573Srgrimes *
261573Srgrimes * $FreeBSD: stable/10/sys/dev/random/yarrow.h 256381 2013-10-12 15:31:36Z markm $
271573Srgrimes */
281573Srgrimes
291573Srgrimes#ifndef SYS_DEV_RANDOM_YARROW_H_INCLUDED
301573Srgrimes#define SYS_DEV_RANDOM_YARROW_H_INCLUDED
311573Srgrimes
321573Srgrimesvoid random_yarrow_init_alg(struct sysctl_ctx_list *);
331573Srgrimesvoid random_yarrow_deinit_alg(void);
3414272Spstint random_yarrow_read(void *, int);
351573Srgrimesvoid random_yarrow_reseed(void);
3692889Sobrien
3792889Sobrien#endif
381573Srgrimes