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

Why the NIST Curves? Shouldn't we be using 25591, 448? #586

Open
DiagonalArg opened this issue Aug 3, 2023 · 8 comments
Open

Why the NIST Curves? Shouldn't we be using 25591, 448? #586

DiagonalArg opened this issue Aug 3, 2023 · 8 comments

Comments

@DiagonalArg
Copy link

DiagonalArg commented Aug 3, 2023

This looks like an interesting project, though I see you're using the NIST curves. Perhaps you don't know the history?

Should we trust the NIST-recommended ECC parameters?

My understanding is that we should be sticking with 25519 and apparently now also 448.

Magic-wormhole, for example, which seems similar to your project, uses 25519.

@DiagonalArg DiagonalArg added the bug label Aug 3, 2023
@schollz
Copy link
Owner

schollz commented Sep 20, 2023

Would happily accept a PR to use 25519

@schollz schollz added enhancement and removed bug labels Sep 20, 2023
@DiagonalArg
Copy link
Author

Would happily accept a PR to use 25519

Would love to be able to, but I don't code!

Copy link

Stale issue message

@DiagonalArg
Copy link
Author

May be stale, but it's still a relevant enhancement ...

@schollz
Copy link
Owner

schollz commented May 20, 2024

@DiagonalArg , then please make a PR!

@DiagonalArg
Copy link
Author

Take 2 of my explaining that I don't code!

Alright, we'll let this request go quietly ...

@joshcangit
Copy link

joshcangit commented Jun 1, 2024

This seems really very tricky, tbh.

May need to PR both schollz/croc and schollz/pake.

The pake repo is using crypto/elliptic in Go 1.13 for the NIST curves.
But, ed25519 and NIST curves are in crypto/internal/edwards25519 and crypto/internal/nistec from 1.19.7 to 1.19.13 or 1.20.2 onwards.

Due to GO-2023-1621, there's a problem with P256 so versions 1.19beta1 to 1.19.6 and 1.20rc1 to 1.20.1 should be avoided.

Therefore, quite a lot of refactoring.

Not sure how to add ed448 as that would need to add 1 more package.

@henrik9999
Copy link

there is a pr open in schollz/pake#8 already but that person is asking for help

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

4 participants