/[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 1 - (hide annotations) (download)
Wed Oct 31 08:19:51 2001 UTC (11 years, 6 months ago) by rabbi
File MIME type: text/plain
File size: 1157 byte(s)
Initial revision
1 rabbi 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.1 2001/10/31 08:19:53 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
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
32     #ifdef USE_IDEA
33     #include <openssl/idea.h>
34     #endif
35     #include <openssl/cast.h>
36     #include <openssl/rand.h>
37    
38     #ifdef USE_RSA
39     typedef RSA PUBKEY;
40     typedef RSA SECKEY;
41     #endif
42    
43     #else
44     /* #error "No crypto library." */
45     typedef void PUBKEY;
46     typedef void SECKEY;
47     #endif
48    
49     #endif

  ViewVC Help
Powered by ViewVC 1.1.5