Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NK_read_TOTP_slot to C API #160

Open
robinkrahl opened this issue Jul 8, 2019 · 2 comments
Open

Add NK_read_TOTP_slot to C API #160

robinkrahl opened this issue Jul 8, 2019 · 2 comments
Milestone

Comments

@robinkrahl
Copy link
Contributor

In the 3.5 release, the NK_read_HOTP_slot function was added to the C API. Yet as far as I see, the corresponding TOTP function is not supported. Shouldn’t both slot types be readable via the C API?

@szszszsz
Copy link
Member

Hi! Indeed there is no TOTP complementary added. I did not thought back then anyone would find it useful, but surely I can add it, if there is a need.
For TOTP slot it can read the period value AFAIR. In HOTP case - the current slot's counter value (which I needed for Nitrokey Storage v0.54 automatic tests).

@robinkrahl
Copy link
Contributor Author

This is a blocker for d-e-s-o/nitrocli#159 (updating a TOTP slot without overwriting the time window).

@szszszsz szszszsz added this to the v3.7 milestone Apr 27, 2021
@szszszsz szszszsz modified the milestones: v3.7, v3.8 Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants