keepassxc/share
Christoph Honal 6d1fc31e96
Implement support for Yubikeys and potential other tokens via wireless NFC using smartcard readers (Rebase) (#6895)
* Support NFC readers for hardware tokens using PC/SC

This requires a new library dependency: PCSC.
The PCSC library provides methods to access smartcards. On Linux, the third-party pcsc-lite package is used. On Windows, the native Windows API (Winscard.dll) is used. On Mac OSX, the native OSX API (framework-PCSC) is used.

* Split hardware key access into multiple classes to handle different methods of communicating with the keys.

* Since the Yubikey can now be a wireless token as well, the verb "plug in" was replaced with a more
generic "interface with". This shall indicate that the user has to present their token to the reader, or plug it in via USB.

* Add PC/SC interface for YubiKey challenge-response

This new interface uses the PC/SC protocol and API
instead of the USB protocol via ykpers. Many YubiKeys expose their functionality as a CCID device, which can be interfaced with using PC/SC. This is especially useful for NFC-only or NFC-capable Yubikeys, when they are used together with a PC/SC compliant NFC reader device.

Although many (not all) Yubikeys expose their CCID functionality over their own USB connection as well, the HMAC-SHA1 functionality is often locked in this mode, as it requires eg. a touch on the gold button. When accessing the CCID functionality wirelessly via NFC (like this code can do using a reader), then the user interaction is to present the key to the reader.

This implementation has been tested on Linux using pcsc-lite, Windows using the native Winscard.dll library, and Mac OSX using the native PCSC-framework library.

* Remove PC/SC ATR whitelist, instead scan for AIDs

Before, a whitelist of ATR codes (answer to reset, hardware-specific)
was used to scan for compatible (Yubi)Keys.
Now, every connected smartcard is scanned for AIDs (applet identifier),
which are known to implement the HMAC-SHA1 protocol.

This enables the support of currently unknown or unreleased hardware.

Co-authored-by: Jonathan White <support@dmapps.us>
2021-10-01 10:39:07 -04:00
..
icons Minor documentation and script cleanups (#6868) 2021-09-21 00:17:46 -04:00
linux CHANGELOG.md: backfill recent releases (#6733) 2021-07-31 06:14:19 -04:00
macosx Backport macOS Big Sur icon 2021-01-07 22:02:43 -05:00
translations Implement support for Yubikeys and potential other tokens via wireless NFC using smartcard readers (Rebase) (#6895) 2021-10-01 10:39:07 -04:00
windows Minor documentation and script cleanups (#6868) 2021-09-21 00:17:46 -04:00
wizard Replace database icons with SVG's 2020-05-29 10:00:32 -04:00
wordlists Remove offensive words (#6914) 2021-09-15 08:51:52 +02:00
CMakeLists.txt Switch to Asciidoctor based documentation 2020-07-05 14:54:31 -04:00
demo.kdbx Improve and secure attachment handling (fixes #2400). 2021-08-22 17:09:21 -04:00
demo.key Add demo kdbx file (password is secret) (#3294) 2019-06-30 11:07:59 -04:00
empty3.kdbx Add fuzz test support 2020-10-08 22:49:34 -04:00
empty4.kdbx Add fuzz test support 2020-10-08 22:49:34 -04:00