1 include_directories(../../include) 2 3 if (${ARCH} STREQUAL "x86_64") 4 set( 5 CIPHER_ARCH_SOURCES 6 7 aes128gcmsiv-x86_64.${ASM_EXT} 8 chacha20_poly1305_x86_64.${ASM_EXT} 9 ) 10 endif() 11 12 add_library( 13 cipher_extra 14 15 OBJECT 16 17 cipher_extra.c 18 derive_key.c 19 20 e_null.c 21 e_rc2.c 22 e_rc4.c 23 e_aesgcmsiv.c 24 e_aesctrhmac.c 25 e_chacha20poly1305.c 26 27 tls_cbc.c 28 e_tls.c 29 e_ssl3.c 30 31 ${CIPHER_ARCH_SOURCES} 32 ) 33 34 perlasm(aes128gcmsiv-x86_64.${ASM_EXT} asm/aes128gcmsiv-x86_64.pl) 35 perlasm(chacha20_poly1305_x86_64.${ASM_EXT} asm/chacha20_poly1305_x86_64.pl) 36