|author||Robin Krahl <email@example.com>||2020-01-15 13:19:13 +0100|
|committer||Robin Krahl <firstname.lastname@example.org>||2020-01-15 13:19:13 +0100|
Fix serial number for older Nitrokey Pro in list_devices
Previously, we assumed that the serial number returned by hidapi contains the Nitrokey serial number as the least significant bytes. As disussed here , this is not true for Nitrokey Pro devices with firmware version 0.8 or older: They write the serial number to the most significant bytes instead. This patch update the get_hidapi_serial_number function so that list_devices now returns the correctly formatted and truncated serial number for all Nitrokey Pro devices. It also makes sure that the serial number is lowercase to be consistent with libnitrokey’s formatting.
Diffstat (limited to 'Cargo.toml')
0 files changed, 0 insertions, 0 deletions