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

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>
This commit is contained in:
xq840622
2022-01-12 18:09:10 +08:00
committed by GitHub
parent 2c58e6b62d
commit 045e90c897
2 changed files with 10 additions and 2 deletions

View File

@ -279,7 +279,7 @@ var testCases = []testCase{
{
Curve: elliptic.P384(),
Name: "P384",
Expected: ECIES_AES256_SHA384,
Expected: ECIES_AES192_SHA384,
},
{
Curve: elliptic.P521(),