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

Additional elliptic curves #25

Open
laurivosandi opened this issue Mar 25, 2018 · 7 comments
Open

Additional elliptic curves #25

laurivosandi opened this issue Mar 25, 2018 · 7 comments

Comments

@laurivosandi
Copy link

Hi,

currently only secp256r1 seems to be supported among the 256-bit EC curves. Windows' certreq utility offers brainpoolp256r1 by default. Would it be much of an effort to add it to oscrypto?

@wbond
Copy link
Owner

wbond commented Apr 3, 2018

It doesn't look viable without looking for some other APIs on Windows. See https://msdn.microsoft.com/en-us/library/windows/desktop/aa375520(v=vs.85).aspx for the supported curves when using CNG. The older legacy APIs we support don't even do ECC.

@laurivosandi
Copy link
Author

Hi, I've got Windows side covered with powershell scripts - I was talking about adding additional curves on Linux

@wbond
Copy link
Owner

wbond commented Apr 4, 2018

I'm not particularly keen on turning oscrypto into a collection of different features on different operating systems. The general idea is something that can be used to consistently have features X, Y and Z on Mac, Linux and Windows without extra libraries to install or configure. That said, currently some variants of DSA are only supported in certain places and some TLS features aren't available on Windows XP, but I'd prefer not to add much to that list.

If brainpoolp256r1 was supported on WIndows 7+, OpenSSL and at least some versions of macOS, I'd probably be okay with it. However, it doesn't look like there are APIs to get it on Windows nor macOS (https://stackoverflow.com/a/24231234/230074).

@laurivosandi
Copy link
Author

Bringing up old topic: what about ed25519?

@saper
Copy link

saper commented May 24, 2022

@laurivosandi My first attempt to provide partial ed25519 is in #64 - but this is for OpenSSL only and @wbond is right in saying we should have this for other backends, too.

@wbond
Copy link
Owner

wbond commented Oct 30, 2022

I was about to post here with info about how I can't seem to use other curves on Windows, but then I found this, which seems to indicate we can use other curves as of Windows 10:

@wbond
Copy link
Owner

wbond commented Oct 30, 2022

On the macOS side it seems things like ed25519 are implemented in CryptoKit, which is Swift-only. :-\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants