mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
fix wc_curve25519_generic() ifdef on NXP LTC builds
This commit is contained in:
committed by
Jacob Barthelmeh
parent
8c16bd2450
commit
476a3e5d4f
@@ -114,7 +114,7 @@ int wc_curve25519_generic(int public_size, byte* pub,
|
|||||||
/* unsupported with NXP LTC, onlly supports single basepoint with
|
/* unsupported with NXP LTC, onlly supports single basepoint with
|
||||||
* nxp_ltc_curve25519_GetBasePoint() */
|
* nxp_ltc_curve25519_GetBasePoint() */
|
||||||
return WC_HW_E;
|
return WC_HW_E;
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
if ((public_size != CURVE25519_KEYSIZE) ||
|
if ((public_size != CURVE25519_KEYSIZE) ||
|
||||||
(private_size != CURVE25519_KEYSIZE) ||
|
(private_size != CURVE25519_KEYSIZE) ||
|
||||||
@@ -143,6 +143,8 @@ int wc_curve25519_generic(int public_size, byte* pub,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
#endif /* FREESCALE_LTC_ECC */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* generate a new private key, as a bare vector.
|
/* generate a new private key, as a bare vector.
|
||||||
|
Reference in New Issue
Block a user