-
Notifications
You must be signed in to change notification settings - Fork 90
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
Update the HOTP App to use Key Value Store #347
Conversation
Looks ok besides the CI failure. Should we add a README to this? |
- use \r or \n - add more error print - use console OR USB HID
Readme is part of the tutorial in the tock book. |
Let's point to that in the README then |
It looks like there's already a README which points to the Tock Book: https://github.com/tock/libtock-c/blob/3c7a601d06612c9a1132fd85ebd91f79ff0bfae0/examples/tutorials/hotp/hotp_oracle_complete/README.md |
Update the HOTP App to use Key Value Store
This changes the HOTP app to use KV rather than app state.
Advantages of KV:
This also just prints the code if usb-hid isn't set up.
I tested this with an nrf52840dk board and it seemed to work as expected. The programmed keys continued to work after resets.