Sync with script.
This commit is contained in:
parent
0d495702e5
commit
6e3f83d19e
@ -10602,7 +10602,7 @@ int ge448_scalarmult_base(ge448_p2* r, const byte* a)
|
||||
e[112] = carry;
|
||||
/* each e[i] is between -8 and 8 */
|
||||
|
||||
/* Odd indeces first - sum based on even index so multiply by 16 */
|
||||
/* Odd indices first - sum based on even index so multiply by 16 */
|
||||
ge448_select(t, 0, e[1]);
|
||||
fe448_copy(r->X, t->x);
|
||||
fe448_copy(r->Y, t->y);
|
||||
@ -10617,7 +10617,7 @@ int ge448_scalarmult_base(ge448_p2* r, const byte* a)
|
||||
ge448_dbl(r, r);
|
||||
ge448_dbl(r, r);
|
||||
|
||||
/* Add even indeces */
|
||||
/* Add even indices */
|
||||
for (i = 0; i <= 112; i += 2) {
|
||||
ge448_select(t, i / 2, e[i]);
|
||||
ge448_madd(r, r, t);
|
||||
@ -10633,7 +10633,7 @@ int ge448_scalarmult_base(ge448_p2* r, const byte* a)
|
||||
|
||||
/* Create to a sliding window for the scalar multiplicaton.
|
||||
*
|
||||
* r [in] Array of indeces.
|
||||
* r [in] Array of indices.
|
||||
* a [in] Scalar to break up.
|
||||
*/
|
||||
static void slide(sword8 *r, const byte *a)
|
||||
|
@ -78329,7 +78329,7 @@ static void sp_256_div2_mod_8(sp_digit* r_p, const sp_digit* a_p, const sp_digit
|
||||
}
|
||||
|
||||
#if defined(WOLFSSL_ARM_ARCH) && (WOLFSSL_ARM_ARCH < 7)
|
||||
static const unsigned char L_sp_256_num_bits_8_table[] = {
|
||||
static const byte L_sp_256_num_bits_8_table[] = {
|
||||
0x00, 0x01, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03,
|
||||
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
|
||||
0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
|
||||
@ -78367,8 +78367,8 @@ static const unsigned char L_sp_256_num_bits_8_table[] = {
|
||||
static int sp_256_num_bits_8(const sp_digit* a_p)
|
||||
{
|
||||
register const sp_digit* a asm ("r0") = (const sp_digit*)a_p;
|
||||
register unsigned char* L_sp_256_num_bits_8_table_c asm ("r1") =
|
||||
(unsigned char*)&L_sp_256_num_bits_8_table;
|
||||
register byte* L_sp_256_num_bits_8_table_c asm ("r1") =
|
||||
(byte*)&L_sp_256_num_bits_8_table;
|
||||
|
||||
__asm__ __volatile__ (
|
||||
"mov lr, %[L_sp_256_num_bits_8_table]\n\t"
|
||||
@ -96088,7 +96088,7 @@ static void sp_384_div2_mod_12(sp_digit* r_p, const sp_digit* a_p, const sp_digi
|
||||
}
|
||||
|
||||
#if defined(WOLFSSL_ARM_ARCH) && (WOLFSSL_ARM_ARCH < 7)
|
||||
static const unsigned char L_sp_384_num_bits_12_table[] = {
|
||||
static const byte L_sp_384_num_bits_12_table[] = {
|
||||
0x00, 0x01, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03,
|
||||
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
|
||||
0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
|
||||
@ -96126,8 +96126,8 @@ static const unsigned char L_sp_384_num_bits_12_table[] = {
|
||||
static int sp_384_num_bits_12(const sp_digit* a_p)
|
||||
{
|
||||
register const sp_digit* a asm ("r0") = (const sp_digit*)a_p;
|
||||
register unsigned char* L_sp_384_num_bits_12_table_c asm ("r1") =
|
||||
(unsigned char*)&L_sp_384_num_bits_12_table;
|
||||
register byte* L_sp_384_num_bits_12_table_c asm ("r1") =
|
||||
(byte*)&L_sp_384_num_bits_12_table;
|
||||
|
||||
__asm__ __volatile__ (
|
||||
"mov lr, %[L_sp_384_num_bits_12_table]\n\t"
|
||||
@ -124642,7 +124642,7 @@ static void sp_521_div2_mod_17(sp_digit* r_p, const sp_digit* a_p, const sp_digi
|
||||
}
|
||||
|
||||
#if defined(WOLFSSL_ARM_ARCH) && (WOLFSSL_ARM_ARCH < 7)
|
||||
static const unsigned char L_sp_521_num_bits_17_table[] = {
|
||||
static const byte L_sp_521_num_bits_17_table[] = {
|
||||
0x00, 0x01, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03,
|
||||
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
|
||||
0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
|
||||
@ -124680,8 +124680,8 @@ static const unsigned char L_sp_521_num_bits_17_table[] = {
|
||||
static int sp_521_num_bits_17(const sp_digit* a_p)
|
||||
{
|
||||
register const sp_digit* a asm ("r0") = (const sp_digit*)a_p;
|
||||
register unsigned char* L_sp_521_num_bits_17_table_c asm ("r1") =
|
||||
(unsigned char*)&L_sp_521_num_bits_17_table;
|
||||
register byte* L_sp_521_num_bits_17_table_c asm ("r1") =
|
||||
(byte*)&L_sp_521_num_bits_17_table;
|
||||
|
||||
__asm__ __volatile__ (
|
||||
"mov lr, %[L_sp_521_num_bits_17_table]\n\t"
|
||||
|
Loading…
Reference in New Issue
Block a user