-
Notifications
You must be signed in to change notification settings - Fork 1
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 support for GENERATE ASYMMETRIC KEY PAIR #31
Conversation
0b21240
to
96289e6
Compare
63b1d58
to
7489a8c
Compare
This is useful because the Context is generally passed by value. The method on `LoadedContext` is currently unused by will be used in #31
This is useful because the Context is generally passed by value. The method on `LoadedContext` is currently unused but will be used in #31
This is useful because the Context is generally passed by value. The method on `LoadedContext` is currently unused but will be used in #31
This is useful because the Context is generally passed by value. The method on `LoadedContext` is currently unused but will be used in #31
9710205
to
8f35afe
Compare
|
This is required for building openpgp-card-sequoia for testing #31
4cb22cc
to
a05ee06
Compare
This patch adds libpcslite-dev to the package list in the Dockerfile used for the CI. This is required for #31.
This patch adds libpcslite-dev to the package list in the Dockerfile used for the CI. This is required for #31.
This PR depends on a patch for |
It would be good to have a guideline from the |
I'm not sure about the serialization format
a4d843f
to
8156e0a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you! I’ve added some suggestions and questions.
let mut sign_card = open.signing_card().unwrap(); | ||
let mut signer = sign_card.signer_from_public(pubk.clone(), &|| {}); | ||
let data = [1; 32]; | ||
let signature = signer.sign(HashAlgorithm::SHA256, &data).unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work with other hash algorithms too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Looking at the openpgp-card
source code it appears that for ECC the given hash is ignored: https://gitlab.com/openpgp-card/openpgp-card/-/blob/main/openpgp-card-sequoia/src/signer.rs#L156
There's one weird behavior of |
- Only delete the key once (it was incorrectly done twice) - Only delete the keys when the attribute has actually changed - Delete the fingerprints and generation dates when deleting the keys
Ok, so it seems it's because |
4ae8a5a
to
4705fb8
Compare
Thank you, merged! |
No description provided.