BeeCrypt  4.2.1
entropy.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1998, 1999, 2000, 2001, 2002 X-Way Rights BV
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  */
19 
26 #ifndef _ENTROPY_H
27 #define _ENTROPY_H
28 
29 #include "beecrypt/beecrypt.h"
30 
31 #if WIN32
32 #include <windows.h>
33 #endif
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 #if WIN32
41 int entropy_provider_setup(HINSTANCE);
43 int entropy_provider_cleanup();
44 
46 int entropy_wavein(byte*, size_t);
48 int entropy_console(byte*, size_t);
50 int entropy_wincrypt(byte*, size_t);
51 #else
52 #if HAVE_DEV_AUDIO
53 int entropy_dev_audio (byte*, size_t);
54 #endif
55 #if HAVE_DEV_DSP
56 int entropy_dev_dsp (byte*, size_t);
57 #endif
58 #if HAVE_DEV_RANDOM
59 int entropy_dev_random (byte*, size_t);
60 #endif
61 #if HAVE_DEV_URANDOM
62 int entropy_dev_urandom(byte*, size_t);
63 #endif
64 #if HAVE_DEV_TTY
65 int entropy_dev_tty (byte*, size_t);
66 #endif
67 #endif
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif