mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-11 21:08:16 +02:00
@@ -2247,7 +2247,7 @@
|
|||||||
* \warning DES is considered a weak cipher and its use constitutes a
|
* \warning DES is considered a weak cipher and its use constitutes a
|
||||||
* security risk. We recommend considering stronger ciphers instead.
|
* security risk. We recommend considering stronger ciphers instead.
|
||||||
*/
|
*/
|
||||||
//#define MBEDTLS_DES_C
|
#define MBEDTLS_DES_C
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_DHM_C
|
* \def MBEDTLS_DHM_C
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ set(EXTERNAL_SOURCES
|
|||||||
${CMAKE_CURRENT_LIST_DIR}/mbedtls/library/chacha20.c
|
${CMAKE_CURRENT_LIST_DIR}/mbedtls/library/chacha20.c
|
||||||
${CMAKE_CURRENT_LIST_DIR}/mbedtls/library/poly1305.c
|
${CMAKE_CURRENT_LIST_DIR}/mbedtls/library/poly1305.c
|
||||||
${CMAKE_CURRENT_LIST_DIR}/mbedtls/library/ripemd160.c
|
${CMAKE_CURRENT_LIST_DIR}/mbedtls/library/ripemd160.c
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/mbedtls/library/des.c
|
||||||
)
|
)
|
||||||
|
|
||||||
set(SOURCES ${SOURCES}
|
set(SOURCES ${SOURCES}
|
||||||
|
|||||||
@@ -240,7 +240,6 @@ bool driver_mounted_ccid(uint8_t itf) {
|
|||||||
void driver_exec_timeout_ccid(uint8_t itf) {
|
void driver_exec_timeout_ccid(uint8_t itf) {
|
||||||
ccid_header[itf] = (struct ccid_header *) usb_get_rx(itf);
|
ccid_header[itf] = (struct ccid_header *) usb_get_rx(itf);
|
||||||
ccid_response[itf] = (struct ccid_header *) (usb_get_tx(itf));
|
ccid_response[itf] = (struct ccid_header *) (usb_get_tx(itf));
|
||||||
printf("CCUD_RESPONSE [itf=%d] %p %p\n", itf, ccid_response[itf], usb_get_tx(itf));
|
|
||||||
ccid_response[itf]->bMessageType = CCID_DATA_BLOCK_RET;
|
ccid_response[itf]->bMessageType = CCID_DATA_BLOCK_RET;
|
||||||
ccid_response[itf]->dwLength = 0;
|
ccid_response[itf]->dwLength = 0;
|
||||||
ccid_response[itf]->bSlot = 0;
|
ccid_response[itf]->bSlot = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user