Fix a mix up between two prime names in a lookup table.

pull/293/head
John Safranek 2020-10-14 15:23:04 -07:00
parent 740d47d0b7
commit 91ca3ee43b
No known key found for this signature in database
GPG Key ID: 8CE817DE0D3CCB4A
1 changed files with 2 additions and 2 deletions

View File

@ -2248,7 +2248,7 @@ static INLINE int wcPrimeForId(byte id)
switch (id) {
#ifndef WOLFSSH_NO_ECDH_SHA2_NISTP256
case ID_ECDH_SHA2_NISTP256:
return ECC_SECP521R1;
return ECC_SECP256R1;
#endif
#ifndef WOLFSSH_NO_ECDSA_SHA2_NISTP256
case ID_ECDSA_SHA2_NISTP256:
@ -2256,7 +2256,7 @@ static INLINE int wcPrimeForId(byte id)
#endif
#ifndef WOLFSSH_NO_ECDH_SHA2_NISTP384
case ID_ECDH_SHA2_NISTP384:
return ECC_SECP521R1;
return ECC_SECP384R1;
#endif
#ifndef WOLFSSH_NO_ECDSA_SHA2_NISTP384
case ID_ECDSA_SHA2_NISTP384: