Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

76 řádky
1.1 KiB

  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. ghashv8-armx.${ASM_EXT}
  20. )
  21. endif()
  22. if (${ARCH} STREQUAL "aarch64")
  23. set(
  24. MODES_ARCH_SOURCES
  25. ghashv8-armx.${ASM_EXT}
  26. )
  27. endif()
  28. if (${ARCH} STREQUAL "ppc64le")
  29. set(
  30. MODES_ARCH_SOURCES
  31. ghashp8-ppc.${ASM_EXT}
  32. )
  33. endif()
  34. add_library(
  35. modes
  36. OBJECT
  37. cbc.c
  38. ctr.c
  39. ofb.c
  40. cfb.c
  41. gcm.c
  42. ${MODES_ARCH_SOURCES}
  43. )
  44. perlasm(aesni-gcm-x86_64.${ASM_EXT} asm/aesni-gcm-x86_64.pl)
  45. perlasm(ghash-x86_64.${ASM_EXT} asm/ghash-x86_64.pl)
  46. perlasm(ghash-x86.${ASM_EXT} asm/ghash-x86.pl)
  47. perlasm(ghash-armv4.${ASM_EXT} asm/ghash-armv4.pl)
  48. perlasm(ghashv8-armx.${ASM_EXT} asm/ghashv8-armx.pl)
  49. perlasm(ghashp8-ppc.${ASM_EXT} asm/ghashp8-ppc.pl)
  50. add_executable(
  51. gcm_test
  52. gcm_test.cc
  53. $<TARGET_OBJECTS:test_support>
  54. )
  55. target_link_libraries(gcm_test crypto)
  56. add_dependencies(all_tests gcm_test)