aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/test/CMakeLists.txt
blob: f4460f0659a13618b69d1c3a8e6ebecbf258edfe (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                     
               
               
               
               
               
               
               
               
               

               
               
               
               
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")

macro(test prefix)
    add_executable(${prefix}_encrypt_block ${prefix}_encrypt_block.c)
    target_link_libraries(${prefix}_encrypt_block libaesni)

    add_executable(${prefix}_decrypt_block ${prefix}_decrypt_block.c)
    target_link_libraries(${prefix}_decrypt_block libaesni)
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)