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

Delete AES keys of Nitrokey Storage after reset #763

Merged
merged 4 commits into from
Aug 6, 2020

Conversation

alex-nitrokey
Copy link
Contributor

@alex-nitrokey alex-nitrokey commented Jun 30, 2020

If smartcard Nitrokey Storage was factory-reset, we delete AES keys on
it as well.

Explaination: After oem-factory-reset was started the AES on the Nitrokey Storage that is used for the encrypted volume and the password safe is is not usable anymore because the smart card was factory-reset. To make it usable, a user needs to delete it via Nitrokey App. By doing so, the HOTP secret is deleted as well, resulting in a bad warning in Heads. Therefore, we are resetting AES key right after factory-reset with hotp_verification

This PR depends on #761 and thus can only be merged if this is merged (this is why this looks huge, but isn't). I opened this PR as a reminder to include these small lines in future.

If smartcard Nitrokey Storage was factory-reset, we delete AES keys on
it as well.

Explaination: After oem-factory-reset was started the AES on the Nitrokey Storage that is used for the encrypted volume and the password safe is is not usable anymore because the smart card was factory-reset. To make it usable, a user needs to delete it via Nitrokey App. By doing so, the HOTP secret is deleted as well, resulting in a bad warning in Heads. Therefore, we are resetting AES key right after factory-reset with hotp_verification
@alex-nitrokey
Copy link
Contributor Author

This commit is now ready to merge. Tested it today with current master merged into the PR.

To sum up the above: Users of NK Storage would need to create new AES keys themselves and thus would need to regenerate HOTP key again afterwards. With this PR the AES keys on the Storage are regenerated during oem-factory-reset.

@tlaurion tlaurion merged commit ae9fb74 into linuxboot:master Aug 6, 2020
@daringer daringer deleted the storage-factoryreset branch November 15, 2023 12:38
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

Successfully merging this pull request may close these issues.

2 participants