Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

beecrypt/entropy.h

Go to the documentation of this file.
00001 
00007 /*
00008  * Copyright (c) 1998, 1999, 2000, 2001 Virtual Unlimited B.V.
00009  *
00010  * Author: Bob Deblier <bob@virtualunlimited.com>
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2.1 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  *
00026  */
00027 
00028 #ifndef _ENTROPY_H
00029 #define _ENTROPY_H
00030 
00031 #include "beecrypt.h"
00032 
00033 #if WIN32
00034 #include <Windows.h>
00035 #endif
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00041 #if WIN32
00042 BEECRYPTAPI
00043 int entropy_provider_setup(HINSTANCE);
00044 BEECRYPTAPI
00045 int entropy_provider_cleanup(void);
00046 
00047 BEECRYPTAPI
00048 int entropy_wavein(uint32* data, int size);
00049 BEECRYPTAPI
00050 int entropy_console(uint32* data, int size);
00051 BEECRYPTAPI
00052 int entropy_wincrypt(uint32* data, int size);
00053 #else
00054 
00055 #if HAVE_DEV_AUDIO
00056 
00058 int entropy_dev_audio (uint32* data, int size)
00059         /*@globals fileSystem, internalState @*/
00060         /*@modifies data, fileSystem, internalState @*/;
00061 #endif
00062 
00063 #if HAVE_DEV_DSP
00064 
00066 int entropy_dev_dsp   (uint32* data, int size)
00067         /*@globals fileSystem, internalState @*/
00068         /*@modifies data, fileSystem, internalState @*/;
00069 #endif
00070 
00071 #if HAVE_DEV_RANDOM
00072 
00074 int entropy_dev_random(uint32* data, int size)
00075         /*@globals fileSystem, internalState @*/
00076         /*@modifies data, fileSystem, internalState @*/;
00077 #endif
00078 
00079 #if HAVE_DEV_URANDOM
00080 
00082 int entropy_dev_urandom(uint32* data, int size)
00083         /*@globals fileSystem, internalState @*/
00084         /*@modifies data, fileSystem, internalState @*/;
00085 #endif
00086 
00087 #if HAVE_DEV_TTY
00088 
00090 int entropy_dev_tty   (uint32* data, int size)
00091         /*@globals fileSystem, internalState @*/
00092         /*@modifies data, fileSystem, internalState @*/;
00093 #endif
00094 #endif
00095 
00096 #ifdef __cplusplus
00097 }
00098 #endif
00099 
00100 #endif

Generated on Tue Sep 17 15:59:44 2002 for rpm by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002