summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Add another test for reading and writing OTP slotsSzczepan Zalega2019-06-22
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Test writing edge OTP slotsSzczepan Zalega2019-06-22
| | | | | | | This tests encountered bug in the Storage v0.54 RC. Write either TOTP15 or HOTP1, and try to access the other. Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'backward_compatibility'pre-v3.5-3Szczepan Zalega2019-06-19
|\ | | | | | | | | Do the HOTP slot counter conversion from ASCII to binary only for Storage v0.53 and lower. Storage v0.54 returns binary counter.
| * Add HOTP counter testsSzczepan Zalega2019-06-19
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add function reading HOTP slot detailsSzczepan Zalega2019-06-19
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Tests: correct the model gettingSzczepan Zalega2019-06-18
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Extend TOTP time test up to 64 bitsSzczepan Zalega2019-06-14
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Correct binary counter specifierSzczepan Zalega2019-06-14
| | | | | | | Makes the 64bit OTP tests passing on the Pro v0.8+ (instead of being skipped). Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'bootloader_pro'Szczepan Zalega2019-06-13
|\ | | | | | | Add bootloader support for the Nitrokey Pro v0.11+
| * Use strnlen for field copiesSzczepan Zalega2019-06-13
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add test for firmware password lengthSzczepan Zalega2019-06-13
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add documentation of new commands to the C APISzczepan Zalega2019-06-13
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add exclusions to the Pro firmware testsSzczepan Zalega2019-06-13
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Comments: fixmeSzczepan Zalega2019-06-13
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Update IDE filesSzczepan Zalega2019-06-13
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add Python testsSzczepan Zalega2019-06-13
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add calls to commands in C APISzczepan Zalega2019-06-13
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Handle new commands in C++ APISzczepan Zalega2019-06-13
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Define commands structsSzczepan Zalega2019-06-13
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Add new command IDsSzczepan Zalega2019-06-13
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch 'pr_157'Szczepan Zalega2019-05-06
|\ | | | | | | | | | | Fix failing test, due to a new format coming from pre-release. Fixes #157
| * Fix regex in unittest for pre-releases and git checkoutsDavid Seifert2019-04-26
|/
* Merge branch 'pr_156'Szczepan Zalega2019-04-25
|\ | | | | | | | | | | Correct package name Closes #156
| * Find Catch 2.5.0 via pkg-configDavid Seifert2019-04-22
|/
* Correct version header in C APIpre-v3.5-2Szczepan Zalega2019-03-19
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Bump version to v3.5Szczepan Zalega2019-03-19
| | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch '154-storage54'pre-v3.5Szczepan Zalega2019-03-19
|\ | | | | | | | | | | | | | | | | | | Add support for the Storage v0.54: - use binary OTP counter - handle 320 bit OTP secret - enable tests for these features Fixes #153 Fixes #154
| * Unlock 64 bit tests for StorageSzczepan Zalega2019-03-19
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Storage v0.54: activate tests for OTP320 and binary counterSzczepan Zalega2019-03-19
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Storage v0.54: enable 320 bit OTP secret and auth commandsSzczepan Zalega2019-03-19
|/ | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
* Merge branch '136-fido-u2f-rules-update'Szczepan Zalega2019-02-11
|\ | | | | | | | | | | Update Udev rules files Fixes #136
| * Consistency - for old style remove TAG attribute and add MODESzczepan Zalega2019-02-11
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Consistency - set Nitrokey U2F MODE=660 (instead of 664)Szczepan Zalega2019-02-11
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Update descriptionSzczepan Zalega2019-02-11
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * remove legacy plugdev groups tagalex-nitrokey2019-02-11
| |
| * outsource old rules to separate filealex-nitrokey2019-02-11
| |
| * Add MODE tag for FIDO U2Falex-nitrokey2019-02-11
| |
| * Add guards and harmonize old and new rulealex-nitrokey2019-02-11
| |
| * Add Nitrokey FIDO U2F entryalex-nitrokey2019-02-11
|/
* Merge branch 'pr_155'Szczepan Zalega2019-01-29
|\ | | | | | | | | | | | | | | | | | | | | Add Status structure, and a general command for using it as a result. Usable to limit calls to the device, when multiple status fields are required at given time. Tested on Nitrokey Pro v0.7 and v0.10. Run offline tests as well (C++ and Python). Fixes #155
| * Add .pytest_cache to .gitignoreRobin Krahl2019-01-29
| |
| * Replace NK_status with NK_get_status_as_string in unit testsRobin Krahl2019-01-29
| |
| * Add unit test for NK_get_statusRobin Krahl2019-01-29
| |
| * Replace NK_status with NK_get_status_as_stringRobin Krahl2019-01-29
| | | | | | | | | | For naming consistency, this patch adds the NK_get_status_as_string function to replace NK_status and marks NK_status as deprecated.
| * Add NK_get_status function to get status structRobin Krahl2019-01-29
|/ | | | | | | | | Currently, the C API provides access to the device status using the NK_get_{major,minor}_firmware_version, NK_device_serial_number and NK_read_config functions. Each function sends a command to the device, although the data is returned in a single response. This patch adds a NK_status struct and a NK_get_status function that provide access to this data with a single command.
* Merge branch 'pr_151'Szczepan Zalega2019-01-26
|\ | | | | | | | | | | | | Add firmware export stress tests for Fedora 29 and macOS 10.13+ Tested on Nitrokey Storage v0.53 Fixes #151
| * Correct the skip message for other OS than FedoraSzczepan Zalega2019-01-26
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Detect UV's block device on Fedora automaticallySzczepan Zalega2019-01-26
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Additional check and device/mount printSzczepan Zalega2019-01-26
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
| * Small correction for macOS 10.13.6Szczepan Zalega2019-01-26
| | | | | | | | Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>