Skip to content

Commit

Permalink
Sync with script.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Oct 31, 2024
1 parent 0d49570 commit 6e3f83d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions wolfcrypt/src/ge_448.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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)
Expand Down
18 changes: 9 additions & 9 deletions wolfcrypt/src/sp_arm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 6e3f83d

Please sign in to comment.