Skip to content

Commit c569374

Browse files
jurajsarinayNipaLocal
authored andcommitted
net: nfc: nci: Increase NCI_DATA_TIMEOUT to 3000 ms
An exchange with a NFC target must complete within NCI_DATA_TIMEOUT. A delay of 700 ms is not sufficient for cryptographic operations on smart cards. CardOS 6.0 may need up to 1.3 seconds to perform 256-bit ECDH or 3072-bit RSA. To prevent brute-force attacks, passports and similar documents introduce even longer delays into access control protocols (BAC/PACE). The timeout should be higher, but not too much. The expiration allows us to detect that a NFC target has disappeared. Signed-off-by: Juraj Šarinay <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 0d65030 commit c569374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/nfc/nci_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ enum nci_state {
5252
#define NCI_RF_DISC_SELECT_TIMEOUT 5000
5353
#define NCI_RF_DEACTIVATE_TIMEOUT 30000
5454
#define NCI_CMD_TIMEOUT 5000
55-
#define NCI_DATA_TIMEOUT 700
55+
#define NCI_DATA_TIMEOUT 3000
5656

5757
struct nci_dev;
5858

0 commit comments

Comments
 (0)