From c26a7ccb6818683fff8bdad729d6de9afff91188 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Fri, 4 Oct 2019 20:37:38 +0200 Subject: [PATCH] Fix copy-paste from LTE module --- wolfcrypt/src/port/st/stm32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfcrypt/src/port/st/stm32.c b/wolfcrypt/src/port/st/stm32.c index e938209c5..891c30e48 100644 --- a/wolfcrypt/src/port/st/stm32.c +++ b/wolfcrypt/src/port/st/stm32.c @@ -417,14 +417,14 @@ static int stm32_get_from_mp_int(uint8_t *dst, mp_int *a, int sz) res = mp_to_unsigned_bin(a, dst + offset); if (res == MP_OKAY) { - /* reverse array for LTC direct use */ + /* reverse array for STM32_PKA direct use */ stm32_reverse_array(dst, sz); } return res; } -/* ECC specs in lsbyte at lowest address format for direct use by LTC PKHA driver functions */ +/* ECC specs in lsbyte at lowest address format for direct use by STM32_PKA PKHA driver functions */ #if defined(HAVE_ECC192) || defined(HAVE_ALL_CURVES) #define ECC192 #endif @@ -582,7 +582,7 @@ int wc_ecc_mulmod_ex(mp_int *k, ecc_point *G, ecc_point *R, mp_int* a, return res; size = szModulus; - /* find LTC friendly parameters for the selected curve */ + /* find STM32_PKA friendly parameters for the selected curve */ if (0 != stm32_get_ecc_specs(&prime, &coef, &coef_sign, &gen_x, &gen_y, &order, size)) { return ECC_BAD_ARG_E; }