diff options
author | Christian Pointner <equinox@anytun.org> | 2014-06-22 22:11:20 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2014-06-22 22:11:20 +0000 |
commit | f463e79addfe63297d4e44f9da49a30cc56b68c3 (patch) | |
tree | c1160efa35a3145715ef95e33d2cd0c76285f830 /src/keyDerivation.h | |
parent | improved selection of crypto lib (diff) |
added compile switches for libnettle
Diffstat (limited to 'src/keyDerivation.h')
-rw-r--r-- | src/keyDerivation.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/keyDerivation.h b/src/keyDerivation.h index 7f0c137..3acd475 100644 --- a/src/keyDerivation.h +++ b/src/keyDerivation.h @@ -43,6 +43,8 @@ #if defined(USE_SSL_CRYPTO) #include <openssl/aes.h> +#elif defined(USE_NETTLE) +#include <openssl/aes.h> #else // USE_GCRYPT is the default #include <gcrypt.h> #endif @@ -173,6 +175,9 @@ private: #if defined(USE_SSL_CRYPTO) AES_KEY aes_key_[2]; uint8_t ecount_buf_[2][AES_BLOCK_SIZE]; +#elif defined(USE_NETTLE) + // TODO: nettle + #else // USE_GCRYPT is the default gcry_cipher_hd_t handle_[2]; #endif |