|
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 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 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 |
|---|