You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
670 B

  1. include_directories(../../include)
  2. if (${ARCH} STREQUAL "x86_64")
  3. set(
  4. EC_ARCH_SOURCES
  5. p256-x86_64-asm.${ASM_EXT}
  6. )
  7. endif()
  8. add_library(
  9. ec
  10. OBJECT
  11. ec.c
  12. ec_asn1.c
  13. ec_key.c
  14. ec_montgomery.c
  15. oct.c
  16. p224-64.c
  17. p256-64.c
  18. p256-x86_64.c
  19. simple.c
  20. util-64.c
  21. wnaf.c
  22. ${EC_ARCH_SOURCES}
  23. )
  24. perlasm(p256-x86_64-asm.${ASM_EXT} asm/p256-x86_64-asm.pl)
  25. add_executable(
  26. example_mul
  27. example_mul.c
  28. $<TARGET_OBJECTS:test_support>
  29. )
  30. add_executable(
  31. ec_test
  32. ec_test.cc
  33. $<TARGET_OBJECTS:test_support>
  34. )
  35. target_link_libraries(example_mul crypto)
  36. target_link_libraries(ec_test crypto)
  37. add_dependencies(all_tests example_mul ec_test)