blob: 4b232bd51fe310fd5f709fb2681e0e96b4b32309 (
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
|
macro(util prefix)
add_executable(util_${prefix}_encrypt_block ${prefix}_encrypt_block.c)
target_link_libraries(util_${prefix}_encrypt_block libaesni)
set_target_properties(util_${prefix}_encrypt_block PROPERTIES OUTPUT_NAME ${prefix}_encrypt_block)
add_executable(util_${prefix}_decrypt_block ${prefix}_decrypt_block.c)
target_link_libraries(util_${prefix}_decrypt_block libaesni)
set_target_properties(util_${prefix}_decrypt_block PROPERTIES OUTPUT_NAME ${prefix}_decrypt_block)
endmacro()
util(aes128ecb)
util(aes128cbc)
util(aes128cfb)
util(aes128ofb)
util(aes128ctr)
util(aes192ecb)
util(aes192cbc)
util(aes192cfb)
util(aes192ofb)
util(aes192ctr)
util(aes256ecb)
util(aes256cbc)
util(aes256cfb)
util(aes256ofb)
util(aes256ctr)
add_subdirectory(cxx)
|