root/trunk/lib_internal/crypto-wrapper.h

Revision 2685, 1.1 kB (checked in by ensc, 10 months ago)

added support for using libnss instead of beecrypt for vhashify's
hash calculation. libnss has bad SHA1 performance on i386, but is a)
maintained and b) gives better performance with all other hashes and
on x86_64.

I am just waiting for somebody to write the OpenSSL layer so that I
can try the padlock hardware crypto device on my C7 ;)

Line 
1 /*      --*- c -*--
2  * Copyright (C) 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; version 2 and/or 3 of the License.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15  */
16
17 #ifndef H_UTIL_VSERVER_LIB_INTERNAL_CRYPTO_WRAPPER_H
18 #define H_UTIL_VSERVER_LIB_INTERNAL_CRYPTO_WRAPPER_H
19
20 #define ENSC_CRYPTO_API_NSS             1
21 #define ENSC_CRYPTO_API_BEECRYPT        2
22
23 #if ENSC_CRYPTO_API == ENSC_CRYPTO_API_BEECRYPT
24 #include "crypto-wrapper-beecrypt.h"
25 #elif ENSC_CRYPTO_API == ENSC_CRYPTO_API_NSS
26 #include "crypto-wrapper-nss.h"
27 #else
28 #error undefined crypto API
29 #endif
30
31 #endif  /* H_UTIL_VSERVER_LIB_INTERNAL_CRYPTO_WRAPPER_H */
Note: See TracBrowser for help on using the browser.