mixmaster

mixmaster 3.0 patched for libressl
git clone git://parazyd.org/mixmaster.git
Log | Files | Refs | README

crypto.h (1301B)


      1 /* Mixmaster version 3.0  --  (C) 1999 - 2006 Anonymizer Inc. and others.
      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 934 2006-06-24 13:40:39Z rabbi $ */
     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 version 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 #include <openssl/rsa.h>
     30 #ifdef USE_IDEA
     31 #include <openssl/idea.h>
     32 #endif /* USE_IDEA */
     33 #ifdef USE_AES
     34 #include <openssl/aes.h>
     35 #endif /* USE_AES */
     36 #include <openssl/cast.h>
     37 #include <openssl/rand.h>
     38 
     39 typedef RSA PUBKEY;
     40 typedef RSA SECKEY;
     41 
     42 #else /* end of USE_OPENSSL */
     43 /* #error "No crypto library." */
     44 typedef void PUBKEY;
     45 typedef void SECKEY;
     46 #endif /* else not USE_OPENSSL */
     47 
     48 #endif /* ifndef _CRYPTO_H */