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

Update the HOTP App to use Key Value Store #347

Merged
merged 3 commits into from
Dec 5, 2023
Merged

Update the HOTP App to use Key Value Store #347

merged 3 commits into from
Dec 5, 2023

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Sep 14, 2023

This changes the HOTP app to use KV rather than app state.

Advantages of KV:

  1. Doesn't change the binary, so if we add credentials they remain valid.
  2. Can be supported in libtock-rs.

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.

@alistair23
Copy link
Contributor

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
@bradjc
Copy link
Contributor Author

bradjc commented Nov 27, 2023

Should we add a README to this?

Readme is part of the tutorial in the tock book.

@alistair23
Copy link
Contributor

Should we add a README to this?

Readme is part of the tutorial in the tock book.

Let's point to that in the README then

@brghena
Copy link
Contributor

brghena commented Nov 29, 2023

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

@brghena brghena added this pull request to the merge queue Dec 1, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 1, 2023
@bradjc bradjc added this pull request to the merge queue Dec 4, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 4, 2023
@bradjc bradjc added this pull request to the merge queue Dec 5, 2023
Merged via the queue into master with commit ceaf957 Dec 5, 2023
2 checks passed
@bradjc bradjc deleted the hotp-kv branch December 5, 2023 18:10
tyler-potyondy pushed a commit to tyler-potyondy/libtock-c that referenced this pull request Mar 13, 2024
Update the HOTP App to use Key Value Store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants