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

crypto/ecies: use AES-192 for curve P384 #24139

Merged
merged 2 commits into from
Jan 12, 2022
Merged

crypto/ecies: use AES-192 for curve P384 #24139

merged 2 commits into from
Jan 12, 2022

Conversation

xq840622
Copy link
Contributor

There is an error, which says "ecies: shared key params are too big", if we use P384 for encrypt. As it is said in readme.md, curve P384 should use AES192 not AES256.

There is an error, which says "ecies: shared key params are too big", if we use P384 for encrypt. As it is said in readme.md, curve P384 should use AES192 not AES256.
Copy link

@gabrielbussolo gabrielbussolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fjl fjl changed the title update params.go crypto/ecies: use AES-192 for curve P384 Dec 21, 2021
Copy link
Contributor Author

@xq840622 xq840622 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crypto/ecies: use AES-192 for curve P384

@xq840622 xq840622 marked this pull request as draft December 24, 2021 09:47
@xq840622 xq840622 marked this pull request as ready for review December 24, 2021 09:48
@fjl fjl added this to the 1.10.15 milestone Dec 26, 2021
@MariusVanDerWijden
Copy link
Member

Generally looks good to me, there's a test failing in crypto/ecies/ecies_test.go TestParamsSelection, also the file is not linted correctly

@fjl fjl modified the milestones: 1.10.15, 1.10.16 Jan 5, 2022
@fjl fjl merged commit 045e90c into ethereum:master Jan 12, 2022
sidhujag pushed a commit to syscoin/go-ethereum that referenced this pull request Jan 13, 2022
Using curve P384 for encryption causes the error "ecies: shared key params
are too big". Also, readme.md says curve P384 should use AES192 not AES256.

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
JacekGlen pushed a commit to JacekGlen/go-ethereum that referenced this pull request May 26, 2022
Using curve P384 for encryption causes the error "ecies: shared key params
are too big". Also, readme.md says curve P384 should use AES192 not AES256.

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants