diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-27 09:25:53 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-27 09:25:53 +0200 |
| commit | 25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c (patch) | |
| tree | 079ea63fcc874506072a91b13d2612b510cf158e /libcmix-crypto/CMakeLists.txt | |
| parent | 9eaf47d5dfa56ca79ae903aabfc2cf52bdfb981e (diff) | |
| download | cmix-25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c.tar.gz cmix-25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c.tar.bz2 cmix-25db9ff8a4cfb4b98aeeaae360e8c718b9c5e20c.zip | |
Adds libgcrypt implementation for elgamal in multiplicative group.
Also adapts the API to both handle sodium and gcrypt libraries.
Diffstat (limited to 'libcmix-crypto/CMakeLists.txt')
| -rw-r--r-- | libcmix-crypto/CMakeLists.txt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/libcmix-crypto/CMakeLists.txt b/libcmix-crypto/CMakeLists.txt index 0986024..65b00ab 100644 --- a/libcmix-crypto/CMakeLists.txt +++ b/libcmix-crypto/CMakeLists.txt @@ -34,7 +34,13 @@ target_sources(cmix-crypto option(UseEC "Use curve25519 instead of RSA" ON) -target_link_libraries(cmix-crypto - INTERFACE curve25519-implementation - INTERFACE elgamal-implementation -)
\ No newline at end of file +if(UseEC) + target_link_libraries(cmix-crypto + INTERFACE curve25519-implementation + ) +else(UseEC) + target_link_libraries(cmix-crypto + INTERFACE elgamal-implementation + ) +endif(UseEC) + |
