25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 738 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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)