diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-19 18:04:57 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-19 18:04:57 +0300 |
commit | c29cfccf900dd973ff73e05190586330a133c303 (patch) | |
tree | 6f8eeb153656186d733febe9c276c9420c51a6e6 /test/CMakeLists.txt | |
parent | add buffer encryption to "boxes" (diff) | |
download | aes-tools-c29cfccf900dd973ff73e05190586330a133c303.tar.gz aes-tools-c29cfccf900dd973ff73e05190586330a133c303.zip |
test: restore specialized block encryption utils
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 199388d..0ee556f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,3 +1,29 @@ +macro(test prefix) + add_executable(test_${prefix}_encrypt_block ${prefix}_encrypt_block.c) + target_link_libraries(test_${prefix}_encrypt_block libaesni) + set_target_properties(test_${prefix}_encrypt_block PROPERTIES OUTPUT_NAME ${prefix}_encrypt_block) + + add_executable(test_${prefix}_decrypt_block ${prefix}_decrypt_block.c) + target_link_libraries(test_${prefix}_decrypt_block libaesni) + set_target_properties(test_${prefix}_decrypt_block PROPERTIES OUTPUT_NAME ${prefix}_decrypt_block) +endmacro() + +test(aes128ecb) +test(aes128cbc) +test(aes128cfb) +test(aes128ofb) +test(aes128ctr) +test(aes192ecb) +test(aes192cbc) +test(aes192cfb) +test(aes192ofb) +test(aes192ctr) +test(aes256ecb) +test(aes256cbc) +test(aes256cfb) +test(aes256ofb) +test(aes256ctr) + find_package(Boost REQUIRED COMPONENTS program_options) add_executable(test_encrypt_block_aes encrypt_block_aes.cpp common_aes.hpp) |