forked from wolfSSL/wolfssl
Fixes for building K82. Fixes for warning with const mp_int* k
changes.
This commit is contained in:
@ -64,10 +64,10 @@
|
|||||||
|
|
||||||
// UART TX Port, Pin, Mux and Baud
|
// UART TX Port, Pin, Mux and Baud
|
||||||
#ifdef FREESCALE_KSDK_BM
|
#ifdef FREESCALE_KSDK_BM
|
||||||
#define UART_PORT LPUART0 /* UART Port */
|
#define UART_PORT LPUART4 /* UART Port */
|
||||||
#define UART_TX_PORT PORTA /* UART TX Port */
|
#define UART_TX_PORT PORTC /* UART TX Port */
|
||||||
#define UART_TX_PIN 2U /* UART TX Pin */
|
#define UART_TX_PIN 15U /* UART TX Pin */
|
||||||
#define UART_TX_MUX kPORT_MuxAlt2 /* Kinetis UART pin mux */
|
#define UART_TX_MUX kPORT_MuxAlt3 /* Kinetis UART pin mux */
|
||||||
#elif defined (WOLFSSL_FRDM_K64)
|
#elif defined (WOLFSSL_FRDM_K64)
|
||||||
#define UART_PORT UART0 /* UART Port */
|
#define UART_PORT UART0 /* UART Port */
|
||||||
#define UART_TX_PORT PORTB /* UART TX Port */
|
#define UART_TX_PORT PORTB /* UART TX Port */
|
||||||
@ -91,7 +91,7 @@
|
|||||||
/* Note: TWR-K60 is UART3, PTC17 */
|
/* Note: TWR-K60 is UART3, PTC17 */
|
||||||
/* Note: FRDM-K64 is UART4, PTE24 or UART0 PTB17 for OpenOCD (SIM_SCGC4_UART0_MASK)*/
|
/* Note: FRDM-K64 is UART4, PTE24 or UART0 PTB17 for OpenOCD (SIM_SCGC4_UART0_MASK)*/
|
||||||
/* Note: TWR-K64 is UART5, PTE8 */
|
/* Note: TWR-K64 is UART5, PTE8 */
|
||||||
/* Note: FRDM-K82F is LPUART0 A2, LPUART4 PTC15 */
|
/* Note: FRDM-K82F is LPUART4 PTC15 Alt3 (OpenOCD UART) */
|
||||||
|
|
||||||
/***********************************************/
|
/***********************************************/
|
||||||
|
|
||||||
|
@ -159,7 +159,6 @@
|
|||||||
<file file_name="drivers/fsl_edma.h" />
|
<file file_name="drivers/fsl_edma.h" />
|
||||||
<file file_name="drivers/fsl_ewm.c" />
|
<file file_name="drivers/fsl_ewm.c" />
|
||||||
<file file_name="drivers/fsl_ewm.h" />
|
<file file_name="drivers/fsl_ewm.h" />
|
||||||
<file file_name="drivers/fsl_flash.c" />
|
|
||||||
<file file_name="drivers/fsl_flash.h" />
|
<file file_name="drivers/fsl_flash.h" />
|
||||||
<file file_name="drivers/fsl_flexbus.c" />
|
<file file_name="drivers/fsl_flexbus.c" />
|
||||||
<file file_name="drivers/fsl_flexbus.h" />
|
<file file_name="drivers/fsl_flexbus.h" />
|
||||||
@ -223,8 +222,6 @@
|
|||||||
<file file_name="drivers/fsl_ltc.h" />
|
<file file_name="drivers/fsl_ltc.h" />
|
||||||
<file file_name="drivers/fsl_ltc_edma.c" />
|
<file file_name="drivers/fsl_ltc_edma.c" />
|
||||||
<file file_name="drivers/fsl_ltc_edma.h" />
|
<file file_name="drivers/fsl_ltc_edma.h" />
|
||||||
<file file_name="drivers/fsl_mpu.c" />
|
|
||||||
<file file_name="drivers/fsl_mpu.h" />
|
|
||||||
<file file_name="drivers/fsl_pdb.c" />
|
<file file_name="drivers/fsl_pdb.c" />
|
||||||
<file file_name="drivers/fsl_pdb.h" />
|
<file file_name="drivers/fsl_pdb.h" />
|
||||||
<file file_name="drivers/fsl_pit.c" />
|
<file file_name="drivers/fsl_pit.c" />
|
||||||
|
@ -696,7 +696,7 @@ static int ltc_get_ecc_specs(const uint8_t **modulus, const uint8_t **r2modn,
|
|||||||
(1==map, 0 == leave in projective)
|
(1==map, 0 == leave in projective)
|
||||||
return MP_OKAY on success
|
return MP_OKAY on success
|
||||||
*/
|
*/
|
||||||
int wc_ecc_mulmod_ex(mp_int *k, ecc_point *G, ecc_point *R, mp_int* a,
|
int wc_ecc_mulmod_ex(const mp_int *k, ecc_point *G, ecc_point *R, mp_int* a,
|
||||||
mp_int *modulus, int map, void* heap)
|
mp_int *modulus, int map, void* heap)
|
||||||
{
|
{
|
||||||
ltc_pkha_ecc_point_t B;
|
ltc_pkha_ecc_point_t B;
|
||||||
@ -726,7 +726,7 @@ int wc_ecc_mulmod_ex(mp_int *k, ecc_point *G, ecc_point *R, mp_int* a,
|
|||||||
szModulus = mp_unsigned_bin_size(modulus);
|
szModulus = mp_unsigned_bin_size(modulus);
|
||||||
szkbin = mp_unsigned_bin_size(k);
|
szkbin = mp_unsigned_bin_size(k);
|
||||||
|
|
||||||
res = ltc_get_from_mp_int(kbin, k, szkbin);
|
res = ltc_get_from_mp_int(kbin, (mp_int*)k, szkbin);
|
||||||
if (res == MP_OKAY)
|
if (res == MP_OKAY)
|
||||||
res = ltc_get_from_mp_int(Gxbin, G->x, szModulus);
|
res = ltc_get_from_mp_int(Gxbin, G->x, szModulus);
|
||||||
if (res == MP_OKAY)
|
if (res == MP_OKAY)
|
||||||
@ -768,7 +768,7 @@ int wc_ecc_mulmod_ex(mp_int *k, ecc_point *G, ecc_point *R, mp_int* a,
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int wc_ecc_mulmod_ex2(mp_int* k, ecc_point *G, ecc_point *R, mp_int* a,
|
int wc_ecc_mulmod_ex2(const mp_int* k, ecc_point *G, ecc_point *R, mp_int* a,
|
||||||
mp_int* modulus, mp_int* order, WC_RNG* rng, int map,
|
mp_int* modulus, mp_int* order, WC_RNG* rng, int map,
|
||||||
void* heap)
|
void* heap)
|
||||||
{
|
{
|
||||||
|
@ -646,7 +646,7 @@ static int stm32_get_ecc_specs(const uint8_t **prime, const uint8_t **coef,
|
|||||||
(1==map, 0 == leave in projective)
|
(1==map, 0 == leave in projective)
|
||||||
return MP_OKAY on success
|
return MP_OKAY on success
|
||||||
*/
|
*/
|
||||||
int wc_ecc_mulmod_ex(mp_int *k, ecc_point *G, ecc_point *R, mp_int* a,
|
int wc_ecc_mulmod_ex(const mp_int *k, ecc_point *G, ecc_point *R, mp_int* a,
|
||||||
mp_int *modulus, int map, void* heap)
|
mp_int *modulus, int map, void* heap)
|
||||||
{
|
{
|
||||||
PKA_ECCMulInTypeDef pka_mul;
|
PKA_ECCMulInTypeDef pka_mul;
|
||||||
@ -725,7 +725,7 @@ int wc_ecc_mulmod_ex(mp_int *k, ecc_point *G, ecc_point *R, mp_int* a,
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int wc_ecc_mulmod_ex2(mp_int* k, ecc_point *G, ecc_point *R, mp_int* a,
|
int wc_ecc_mulmod_ex2(const mp_int* k, ecc_point *G, ecc_point *R, mp_int* a,
|
||||||
mp_int* modulus, mp_int* order, WC_RNG* rng, int map,
|
mp_int* modulus, mp_int* order, WC_RNG* rng, int map,
|
||||||
void* heap)
|
void* heap)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user