fix wc_curve25519_generic() ifdef on NXP LTC builds

This commit is contained in:
Chris Conlon
2020-12-21 09:25:47 -07:00
committed by Jacob Barthelmeh
parent 8c16bd2450
commit 476a3e5d4f

View File

@@ -114,7 +114,7 @@ int wc_curve25519_generic(int public_size, byte* pub,
/* unsupported with NXP LTC, onlly supports single basepoint with
* nxp_ltc_curve25519_GetBasePoint() */
return WC_HW_E;
#endif
#else
if ((public_size != CURVE25519_KEYSIZE) ||
(private_size != CURVE25519_KEYSIZE) ||
@@ -143,6 +143,8 @@ int wc_curve25519_generic(int public_size, byte* pub,
#endif
return ret;
#endif /* FREESCALE_LTC_ECC */
}
/* generate a new private key, as a bare vector.