blob: 4ca993e00e801e48575ec34658f455c70816b2eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
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)
add_executable(test_encrypt_block_aes encrypt_block_aes.cpp)
target_link_libraries(test_encrypt_block_aes libaesni libaesnixx)
set_target_properties(test_encrypt_block_aes PROPERTIES OUTPUT_NAME encrypt_block_aes)
add_executable(test_decrypt_block_aes decrypt_block_aes.cpp)
target_link_libraries(test_decrypt_block_aes libaesni libaesnixx)
set_target_properties(test_decrypt_block_aes PROPERTIES OUTPUT_NAME decrypt_block_aes)
|