6 Commits
Author SHA1 Message Date
Stuart Longland 0fcd77d61d CcidTransceiver: Adjust line lengths
100 characters with exceptions made for CLI commands, URIs and imports.
Some of this is existing code, but for the sake of consistency, we'll
wrap all at 100 characters.

Function arguments: when this happens, if we put the closing `)` on its
own line (like `}` in code blocks), it visually stands out better for
indicating where the function call ends.
2024-02-01 23:55:10 +01:00
Stuart Longland fec3f85fad CcidTransceiver: Poke device again if we get zero-sized packet. 2024-02-01 23:55:10 +01:00
Stuart Longland 19cd6967c0 T1ShortApduProtocol: Implement CCID chaining
Code credit: @sosthene-nitrokey
https://github.com/open-keychain/open-keychain/pull/2842#issuecomment-1637598171
2024-02-01 23:55:10 +01:00
Stuart Longland 1ee192f098 CcidTransceiver: Expose Level Param
The `PC_TO_RDR_XFR_BLOCK` structure has a fields which is used in
multi-block transfers:
- `levelParam`: Indicates if APDU begins or ends in this command

Some constants for `levelParam` are defined.
2024-02-01 23:55:10 +01:00
Stuart Longland 99fed989ad UsbTransport: Recognise NitroKey 3 family USB ID
https://raw.githubusercontent.com/Nitrokey/libnitrokey/master/data/41-nitrokey.rules lists the following USB VID/PID:

20a0:42b2: Nitrokey 3A Mini/3A NFC/3C NFC
2024-02-01 23:55:10 +01:00
Stuart Longland 64b4c9fad8 SecurityTokenInfo: Add NITROKEY_3 to TokenType enum 2024-02-01 23:55:10 +01:00