diff options
| author | Nils Maier <maierman@web.de> | 2013-09-24 00:39:55 +0200 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2013-09-24 19:11:00 +0200 |
| commit | e854463b2d78fe9ce107e024e5e07623ff93d838 (patch) | |
| tree | acdd6ba43f0ae7bdc6998f6ad778cfb214af867f /src/DHKeyExchange.h | |
| parent | 213de910fdcdec08c96670bfaa617aef7ca4c28d (diff) | |
Internal implementation of DHKeyExchange
Reusing a bignum (well, unsigned very-long) implementation I had lying
around for years and just cleaned up a bit and brought to C++11 land.
It might not be the most performant implementation, but it shoud be fast
enough for our purposes and will go a long way of removing gcrypt,
nettle, gmp, openssl dependencies when using AppleTLS and WinTLS
(upcoming).
Diffstat (limited to 'src/DHKeyExchange.h')
| -rw-r--r-- | src/DHKeyExchange.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DHKeyExchange.h b/src/DHKeyExchange.h index 1fd7b86f..8c52d262 100644 --- a/src/DHKeyExchange.h +++ b/src/DHKeyExchange.h @@ -36,7 +36,9 @@ #define D_DH_KEY_EXCHANGE_H #include "common.h" -#ifdef HAVE_LIBGMP +#ifdef USE_INTERNAL_BIGNUM +# include "InternalDHKeyExchange.h" +#elif HAVE_LIBGMP # include "LibgmpDHKeyExchange.h" #elif HAVE_LIBGCRYPT # include "LibgcryptDHKeyExchange.h" |
