You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you been investigating this? We need it for Apple push notifications and are looking into ways of implementing them in Rust. We could fork and use some C bindings to get the job done, but I guess the changes would never get into the mainline here.
ECDSA signing with P-256 and P-384 is in ring 0.13.0-alpha4. See the comments in briansmith/ring#207 for details. Please try it out and let me know if you run into any issues before I release the 0.13.0 final version.
It will allow us to use ring's ECDSAKeyPair in sign function and thus add support of ES-* algorithms family today. It also looks rationale becase we may use any external library's key format this way.
I've got ECDSA signing working in my fork, tested working for APNS JWT auth using my fork of apns2-rust. I didn't implement signature verification yet since I didn't need it, but can add that and submit a PR if there's interest.
Unfortunately, ECDSA signing requires ring 0.14, so the long-standing issue with linking multiple versions of ring into the same project might bite people here. For example, if you use this you can't also use rustls (which uses ring 0.13) in the same project.
Unfortunately, ECDSA signing requires ring 0.14, so the long-standing issue with linking multiple versions of ring into the same project might bite people here. For example, if you use this you can't also use rustls (which uses ring 0.13) in the same project.
I will update Rustls soon. I already have a PR for it.
Oh I thought the versioning fix was meant to be merged in 0.13 :(
Would be nice to have a PR for ECDSA, there are quite a few breaking changes piling up.
Activity
pimeys commentedon Jan 25, 2017
Hey,
Have you been investigating this? We need it for Apple push notifications and are looking into ways of implementing them in Rust. We could fork and use some C bindings to get the job done, but I guess the changes would never get into the mainline here.
There are options to do the signing with:
Is there any progression or people who've been trying to do this with Rust?
Keats commentedon Jan 26, 2017
I didn't look into it yet but from a very quick research, it seems that Ring does support verifying ECDS https://briansmith.org/rustdoc/ring/?search=ECDSA but not signing.
briansmith/ring#207 seems to be tracking it
I'm not a crypto expert either so I definitely don't want to build it myself
pimeys commentedon Jan 26, 2017
I asked about ECDSA in #rust-crypto yesterday and they gave me this: https://gitlab.com/ilari_l/btls/tree/master I'll investigate how and where should I use it and at least fork your project for basis. I don't know do you want to have this include in the HEAD, but we're in serious need for this with Apple notifications.
briansmith commentedon May 31, 2018
ECDSA signing with P-256 and P-384 is in ring 0.13.0-alpha4. See the comments in briansmith/ring#207 for details. Please try it out and let me know if you run into any issues before I release the 0.13.0 final version.
Keats commentedon Jun 1, 2018
Thanks for the notice!
I'll update the crate once the version is released with briansmith/ring#619 so upgrading ring is not a breaking change
Keats commentedon Aug 9, 2018
I don't have the bandwidth to work on that but I would welcome a PR
manifest commentedon Aug 31, 2018
I'm willing to work on this issue, but there are currently some obstacles in ring API. I've described them in the related issue.
manifest commentedon Sep 3, 2018
@Keats Do you mind changing the type of the key from
&[u8]toenum?It will allow us to use ring's ECDSAKeyPair in
signfunction and thus add support of ES-* algorithms family today. It also looks rationale becase we may use any external library's key format this way.Keats commentedon Sep 4, 2018
That would expose
ringto end users which isn't really nice. I would rather wait for supports for signing from bytes to be implemented inringmanifest commentedon Sep 4, 2018
Unfortunately there is no activity on that matter :-(
jbg commentedon Jan 9, 2019
I've got ECDSA signing working in my fork, tested working for APNS JWT auth using my fork of apns2-rust. I didn't implement signature verification yet since I didn't need it, but can add that and submit a PR if there's interest.
Unfortunately, ECDSA signing requires ring 0.14, so the long-standing issue with linking multiple versions of ring into the same project might bite people here. For example, if you use this you can't also use rustls (which uses ring 0.13) in the same project.
briansmith commentedon Jan 9, 2019
I will update Rustls soon. I already have a PR for it.
Keats commentedon Jan 10, 2019
Oh I thought the versioning fix was meant to be merged in 0.13 :(
Would be nice to have a PR for ECDSA, there are quite a few breaking changes piling up.
jbg commentedon Jan 11, 2019
OK, I'll try to implement verification this weekend and submit a pull request
jbg commentedon Feb 1, 2019
Finally got around to this today: #73