* tar xzf utvpn-src-unix-v101-7101-public-2010.06.27.tar.gz
[lab.git] / utvpn / utvpn-unix-v101-7101-public / src / Mayaqua / openssl / fips_rand.h
1 /* ====================================================================\r
2  * Copyright (c) 2003 The OpenSSL Project.  All rights reserved.\r
3  *\r
4  * Redistribution and use in source and binary forms, with or without\r
5  * modification, are permitted provided that the following conditions\r
6  * are met:\r
7  *\r
8  * 1. Redistributions of source code must retain the above copyright\r
9  *    notice, this list of conditions and the following disclaimer. \r
10  *\r
11  * 2. Redistributions in binary form must reproduce the above copyright\r
12  *    notice, this list of conditions and the following disclaimer in\r
13  *    the documentation and/or other materials provided with the\r
14  *    distribution.\r
15  *\r
16  * 3. All advertising materials mentioning features or use of this\r
17  *    software must display the following acknowledgment:\r
18  *    "This product includes software developed by the OpenSSL Project\r
19  *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"\r
20  *\r
21  * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to\r
22  *    endorse or promote products derived from this software without\r
23  *    prior written permission. For written permission, please contact\r
24  *    openssl-core@openssl.org.\r
25  *\r
26  * 5. Products derived from this software may not be called "OpenSSL"\r
27  *    nor may "OpenSSL" appear in their names without prior written\r
28  *    permission of the OpenSSL Project.\r
29  *\r
30  * 6. Redistributions of any form whatsoever must retain the following\r
31  *    acknowledgment:\r
32  *    "This product includes software developed by the OpenSSL Project\r
33  *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"\r
34  *\r
35  * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY\r
36  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
37  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
38  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR\r
39  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r
40  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
41  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r
42  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
43  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\r
44  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
45  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\r
46  * OF THE POSSIBILITY OF SUCH DAMAGE.\r
47  *\r
48  */\r
49 \r
50 #ifndef HEADER_FIPS_RAND_H\r
51 #define HEADER_FIPS_RAND_H\r
52 \r
53 #include "des.h"\r
54 \r
55 #ifdef OPENSSL_FIPS\r
56 \r
57 #ifdef  __cplusplus\r
58 extern "C" {\r
59 #endif\r
60 \r
61 void FIPS_set_prng_key(const unsigned char k1[8],const unsigned char k2[8]);\r
62 void FIPS_test_mode(int test,const unsigned char faketime[8]);\r
63 void FIPS_rand_seed(const void *buf, FIPS_RAND_SIZE_T num);\r
64 /* NB: this returns true if _partially_ seeded */\r
65 int FIPS_rand_seeded(void);\r
66 \r
67 RAND_METHOD *FIPS_rand_method(void);\r
68 \r
69 #ifdef  __cplusplus\r
70 }\r
71 #endif\r
72 #endif\r
73 #endif\r
74 \r