Kenny Root | b849459 | 2015-09-25 02:29:14 +0000 | [diff] [blame] | 1 | include_directories(../../include) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 2 | |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 3 | if (${ARCH} STREQUAL "x86_64") |
4 | set( | ||||
5 | CIPHER_ARCH_SOURCES | ||||
6 | |||||
7 | chacha20_poly1305_x86_64.${ASM_EXT} | ||||
8 | ) | ||||
9 | endif() | ||||
10 | |||||
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 11 | add_library( |
12 | cipher | ||||
13 | |||||
14 | OBJECT | ||||
15 | |||||
16 | cipher.c | ||||
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 17 | derive_key.c |
18 | aead.c | ||||
19 | |||||
20 | e_null.c | ||||
21 | e_rc2.c | ||||
22 | e_rc4.c | ||||
23 | e_des.c | ||||
24 | e_aes.c | ||||
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 25 | e_aesgcmsiv.c |
26 | e_aesctrhmac.c | ||||
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 27 | e_chacha20poly1305.c |
28 | |||||
29 | tls_cbc.c | ||||
30 | e_tls.c | ||||
31 | e_ssl3.c | ||||
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 32 | |
33 | ${CIPHER_ARCH_SOURCES} | ||||
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 34 | ) |
35 | |||||
36 | add_executable( | ||||
37 | cipher_test | ||||
38 | |||||
Adam Langley | f4e4272 | 2015-06-04 17:45:09 -0700 | [diff] [blame] | 39 | cipher_test.cc |
40 | $<TARGET_OBJECTS:test_support> | ||||
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 41 | ) |
42 | |||||
43 | add_executable( | ||||
44 | aead_test | ||||
45 | |||||
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 46 | aead_test.cc |
47 | $<TARGET_OBJECTS:test_support> | ||||
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 48 | ) |
49 | |||||
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 50 | perlasm(chacha20_poly1305_x86_64.${ASM_EXT} asm/chacha20_poly1305_x86_64.pl) |
51 | |||||
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 52 | target_link_libraries(cipher_test crypto) |
53 | target_link_libraries(aead_test crypto) | ||||
Kenny Root | e99801b | 2015-11-06 15:31:15 -0800 | [diff] [blame] | 54 | add_dependencies(all_tests cipher_test aead_test) |