mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 17:11:23 +02:00
Using custom mbedtls configuration file.
We disable lots of unwanted algorithms and suites and we only keep those are used.
This commit is contained in:
@@ -36,11 +36,7 @@ if (NOT DEFINED USB_PID)
|
||||
set(USB_PID 0xFCFD)
|
||||
endif()
|
||||
add_definitions(-DUSB_PID=${USB_PID})
|
||||
|
||||
set_source_files_properties(
|
||||
${CMAKE_CURRENT_LIST_DIR}/OpenSC/src/libopensc/ctx.c
|
||||
PROPERTIES COMPILE_DEFINITIONS "PACKAGE_VERSION=\"0.22.0\";OPENSC_CONF_PATH=\".\""
|
||||
)
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/config/mbedtls_config.h ${CMAKE_CURRENT_LIST_DIR}/mbedtls/include/mbedtls COPYONLY)
|
||||
|
||||
target_sources(pico_ccid PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/usb/usb.c
|
||||
@@ -72,6 +68,4 @@ target_compile_options(pico_ccid PUBLIC
|
||||
|
||||
pico_add_extra_outputs(pico_ccid)
|
||||
|
||||
#target_compile_definitions(pico_ccid PRIVATE MBEDTLS_ECDSA_DETERMINISTIC=1)
|
||||
|
||||
target_link_libraries(pico_ccid PRIVATE pico_stdlib pico_multicore hardware_flash hardware_sync hardware_adc pico_unique_id hardware_rtc tinyusb_device tinyusb_board)
|
||||
|
||||
3322
config/mbedtls_config.h
Normal file
3322
config/mbedtls_config.h
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user