aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-10-04 12:18:35 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-10-04 12:18:35 +0200
commit4f2c980343b321e7fccf48190c32bfb4bca426f4 (patch)
treee08d299dc9da1976c8924207f9cbfbc8bd06709a /libcmix-crypto
parentad3d46b0b6ca285bbaf1540e9805714addfeb9af (diff)
downloadcmix-4f2c980343b321e7fccf48190c32bfb4bca426f4.tar.gz
cmix-4f2c980343b321e7fccf48190c32bfb4bca426f4.tar.bz2
cmix-4f2c980343b321e7fccf48190c32bfb4bca426f4.zip
Added a bignum library to abstract possible implementations.
Diffstat (limited to 'libcmix-crypto')
-rw-r--r--libcmix-crypto/curve25519/CMakeLists.txt5
-rw-r--r--libcmix-crypto/elgamal/CMakeLists.txt4
2 files changed, 4 insertions, 5 deletions
diff --git a/libcmix-crypto/curve25519/CMakeLists.txt b/libcmix-crypto/curve25519/CMakeLists.txt
index afcc1b4..847c26c 100644
--- a/libcmix-crypto/curve25519/CMakeLists.txt
+++ b/libcmix-crypto/curve25519/CMakeLists.txt
@@ -1,4 +1,3 @@
-
add_library(curve25519-interface INTERFACE)
target_include_directories(curve25519-interface
@@ -13,7 +12,7 @@ target_link_libraries(curve25519-interface
INTERFACE cmix-crypto-interface
)
-foreach(impl ${curve25519_implementations})
+foreach(impl ${libcmix_crypto_curve25519_implementations})
add_subdirectory(${impl})
endforeach()
@@ -27,7 +26,7 @@ target_include_directories(curve25519-implementation
target_link_libraries(curve25519-implementation
PUBLIC curve25519-interface
- PUBLIC curve25519-${curve25519_implementation}
+ PUBLIC curve25519-${libcmix_crypto_curve25519_implementation}
)
diff --git a/libcmix-crypto/elgamal/CMakeLists.txt b/libcmix-crypto/elgamal/CMakeLists.txt
index b92e5ae..8ee9a11 100644
--- a/libcmix-crypto/elgamal/CMakeLists.txt
+++ b/libcmix-crypto/elgamal/CMakeLists.txt
@@ -12,7 +12,7 @@ target_link_libraries(elgamal-interface
INTERFACE cmix-crypto-interface
)
-foreach(impl ${elgamal_implementations})
+foreach(impl ${libcmix_crypto_elgamal_implementations})
add_subdirectory(${impl})
endforeach()
@@ -26,5 +26,5 @@ target_include_directories(elgamal-implementation
target_link_libraries(elgamal-implementation
PUBLIC elgamal-interface
- PUBLIC elgamal-${elgamal_implementation}
+ PUBLIC elgamal-${libcmix_crypto_elgamal_implementation}
)