Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

54 wiersze
738 B

  1. include_directories(. .. ../../include)
  2. if (${ARCH} STREQUAL "x86_64")
  3. set(
  4. MODES_ARCH_SOURCES
  5. aesni-gcm-x86_64.${ASM_EXT}
  6. ghash-x86_64.${ASM_EXT}
  7. )
  8. endif()
  9. if (${ARCH} STREQUAL "x86")
  10. set(
  11. MODES_ARCH_SOURCES
  12. ghash-x86.${ASM_EXT}
  13. )
  14. endif()
  15. if (${ARCH} STREQUAL "arm")
  16. set(
  17. MODES_ARCH_SOURCES
  18. ghash-armv4.${ASM_EXT}
  19. )
  20. endif()
  21. add_library(
  22. modes
  23. OBJECT
  24. cbc.c
  25. ctr.c
  26. ofb.c
  27. cfb.c
  28. gcm.c
  29. ${MODES_ARCH_SOURCES}
  30. )
  31. perlasm(aesni-gcm-x86_64.${ASM_EXT} asm/aesni-gcm-x86_64.pl)
  32. perlasm(ghash-x86_64.${ASM_EXT} asm/ghash-x86_64.pl)
  33. perlasm(ghash-x86.${ASM_EXT} asm/ghash-x86.pl)
  34. perlasm(ghash-armv4.${ASM_EXT} asm/ghash-armv4.pl)
  35. add_executable(
  36. gcm_test
  37. gcm_test.c
  38. )
  39. target_link_libraries(gcm_test crypto)