-
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 nist P384 and P521 curves, as well as the brainpool 256, 384 and 512 bit curves #207
Conversation
56d562b
to
8d6f25d
Compare
8d6f25d
to
9d16b5e
Compare
Does this support SE050? |
Yes. It fully works with the software implementation, but it also contains a workaround for an issue that comes with the SE050 implementation and private key import. The other relevant PRs are:
Due to binary size constraints, we are going to only support these curves when the SE050 anyways on the NK3 firmware (at least until we make significant progress on that front). |
fd3d364
to
35815b7
Compare
There is no software implementation of these curves, so it is only tested with hardware tests.
This uses an arch linux docker image because: Debian 12 does not have gnupg 2.4 Ubuntu 24.04 has it and vsmartcard but not cargo-tarpaulin. And building cargo-tarpaulin seems to always lead to a dynamic dependency on `libssl1.1.so` which is not available in the repos. This is still not perfect. Building vsmartcard fails, so I'm just bundling a binary package...
ddd97d2
to
374f40c
Compare
223b0c5
to
7c37784
Compare
7c37784
to
cf62f7e
Compare
src/card.rs
Outdated
/// EdDsa25519 | ||
const ED_25519 = 1 << 7; | ||
/// BRAINPOOL_P256R1 Brainpool curve | ||
const BRAINPOOL_P256R1 = 1<<8; |
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.
tiny nit - cargo fmt
doesn't catch this ?
const BRAINPOOL_P256R1 = 1<<8; | |
const BRAINPOOL_P256R1 = 1 << 8; |
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.
I suppose no because of the bitflags
macro.
Pending: trussed-dev/trussed#163