libnitrokey
libnitrokey copied to clipboard
Communicate with Nitrokey devices in a clean and easy manner
`P` for Pro and `S` for Storage or similar solution
- refactor function and devices names (eg. NKPro (Stick10) and NKStorage (Stick20))
When switching between libnitrokey and GnuPG, both my Nitrokey Pro and my Nitrokey Storage hang with the red LED staying on. Any GnuPG calls will hang or return an error...
This patch adds getters for the number of PWS, TOTP and HOTP slots on the current device and the maximum length of a PWS slot name, login and password as...
The OTP slot name is sent to the device using the `SendOTPData` command which can store [30 bytes of data](https://github.com/Nitrokey/libnitrokey/blob/master/libnitrokey/stick10_commands_0.8.h#L97). Yet the firmware only stores the [first 15 bytes](https://github.com/Nitrokey/nitrokey-pro-firmware/blob/5c3144183c4dd3bf06fe227e3360b2780e7d7b02/src/inc/hotp.h#L77) of...
I had to manually add this udev rule to use the Librem Key: ```text ATTR{idVendor}=="316d", ATTR{idProduct}=="4c4b", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg", GROUP+="plugdev", TAG+="uaccess" ``` Shouldn’t this be part of the `data/41-nitrokey.rules` file?
Currently, all types and functions defined in `NK_C_API.h` use the `NK_` prefix, expect for `MAXIMUM_STR_REPLY_LENGTH` and `ReadSlot_t`. They should be renamed with the next breaking release to make the names...
- The `NitrokeyManager::get_SD_usage_data` function currently only returns the min/max write levels. It could also return the min/max read levels. Also, the documentation should be improved: - Intuitively, one would assume...
There is a proposition to use Meson as a main build system instead of CMake. Let's discuss it here. Source: https://github.com/Nitrokey/libnitrokey/pull/165#issuecomment-567577747
This patch changes LongOperationInProgressException to derive from DeviceCommunicationException. This makes it easier to use the C API as the exception now has a unique numerical identifier. Fixes #170.