forked from wolfSSL/wolfssl
Fix STM32 PKA ECC cast warning.
This commit is contained in:
@@ -595,7 +595,7 @@ static int stm32_getabs_from_mp_int(uint8_t *dst, const mp_int *a, int sz,
|
|||||||
#else
|
#else
|
||||||
*abs_sign = 1; /* default to negative */
|
*abs_sign = 1; /* default to negative */
|
||||||
#endif
|
#endif
|
||||||
res = mp_abs(a, &x);
|
res = mp_abs((mp_int*)a, &x);
|
||||||
if (res == MP_OKAY)
|
if (res == MP_OKAY)
|
||||||
res = stm32_get_from_mp_int(dst, &x, sz);
|
res = stm32_get_from_mp_int(dst, &x, sz);
|
||||||
mp_clear(&x);
|
mp_clear(&x);
|
||||||
|
Reference in New Issue
Block a user