/[pkg-mixmaster]/trunk/Mix/Src/crypto.h
ViewVC logotype

Contents of /trunk/Mix/Src/crypto.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 262 - (show annotations) (download)
Wed Sep 18 23:26:17 2002 UTC (10 years, 8 months ago) by rabbi
File MIME type: text/plain
File size: 1356 byte(s)
Added closing comments for all #ifdef statements. All #endif's, as well as
nested braces, should be commented to reference their start.

We need to provide comments before every function as well.
1 /* Mixmaster version 3 -- (C) 1999 Anonymizer Inc.
2
3 Mixmaster may be redistributed and modified under certain conditions.
4 This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
5 ANY KIND, either express or implied. See the file COPYRIGHT for
6 details.
7
8 Interface to cryptographic library
9 $Id: crypto.h,v 1.3 2002/09/18 23:26:16 rabbi Exp $ */
10
11
12 #ifndef _CRYPTO_H
13 #define _CRYPTO_H
14 #include "mix3.h"
15
16 #ifdef USE_OPENSSL
17 #include <openssl/opensslv.h>
18 #if (OPENSSL_VERSION_NUMBER < 0x0903100)
19 #error "This version of OpenSSL is not supported. Please get a more current verion from http://www.openssl.org"
20 #endif /* version check */
21 #include <openssl/des.h>
22 #include <openssl/blowfish.h>
23 #include <openssl/md5.h>
24 #include <openssl/sha.h>
25 #include <openssl/ripemd.h>
26 #include <openssl/bn.h>
27 #include <openssl/dh.h>
28 #include <openssl/dsa.h>
29 #ifdef USE_RSA
30 #include <openssl/rsa.h>
31 #endif /* USE_RSA */
32 #ifdef USE_IDEA
33 #include <openssl/idea.h>
34 #endif /* USE_IDEA */
35 #ifdef USE_AES
36 #include <openssl/aes.h>
37 #endif /* USE_AES */
38 #include <openssl/cast.h>
39 #include <openssl/rand.h>
40
41 #ifdef USE_RSA
42 typedef RSA PUBKEY;
43 typedef RSA SECKEY;
44 #endif /* USE_RSA */
45
46 #else /* end of USE_OPENSSL */
47 /* #error "No crypto library." */
48 typedef void PUBKEY;
49 typedef void SECKEY;
50 #endif /* else not USE_OPENSSL */
51
52 #endif /* ifndef _CRYPTO_H */

  ViewVC Help
Powered by ViewVC 1.1.5