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

Private key storage in seed vs expanded key format for ML-KEM, ML-DSA #139

Closed
robplee opened this issue Sep 25, 2024 · 1 comment · Fixed by #146
Closed

Private key storage in seed vs expanded key format for ML-KEM, ML-DSA #139

robplee opened this issue Sep 25, 2024 · 1 comment · Fixed by #146
Assignees
Labels
duplicate This issue or pull request already exists

Comments

@robplee
Copy link

robplee commented Sep 25, 2024

As I raised on the mailing list [1], I think there's a reasonable argument for limiting the storage format for post-quantum keys to the seed format rather than the, arguably more temperamental, expanded key format. I think LAMPS is going in the direction of seed-format-only so I think there is precendence that we can follow and go with the same approach. See [2] and [3]

There were some concerns about low-power devices/OpenPGP smart cards but I think it was decided that was not a huge concern or at least not a reason to have multiple key storage formats (but others are free to contradict me if it is :) ).

Happy to provide some assistance with writing/reviewing text on storage formats if it'll help.

[1] https://mailarchive.ietf.org/arch/msg/openpgp/2dg-DrWt4DgIoX8uTalCa-kzE38/
[2] randombit/botan#3893 (comment)
[3] randombit/botan#4270 (comment)

@falko-strenzke falko-strenzke added the duplicate This issue or pull request already exists label Sep 26, 2024
@falko-strenzke
Copy link
Collaborator

This topic is already being tracked in #108. Regarding the private key format for smart cards, I think that their private key format does not necessarily have to conform with the general OpenPGP format. An OpenPGP seed private key could still be imported into a smart card that is using the expanded format. If the expanded key of the card also holds the seed (without using it internally) the key could even be exported to a "software" key again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants