Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion wolfcrypt/src/sp_arm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -20618,7 +20618,8 @@ static void sp_4096_to_bin(sp_digit* r, byte* a)
}
}

#ifndef WOLFSSL_SP_SMALL
#if defined(WOLFSSL_SP_SMALL) && !defined(WOLFSSL_SP_ARM32_ASM)

/* Add b to a into r. (r = a + b)
*
* r A single precision integer.
Expand Down Expand Up @@ -20897,6 +20898,10 @@ static sp_digit sp_4096_add_64(sp_digit* r, const sp_digit* a,
return c;
}

#endif /* WOLFSSL_SP_SMALL */


#ifndef WOLFSSL_SP_SMALL
/* Sub b from a into a. (a -= b)
*
* a A single precision integer and result.
Expand Down Expand Up @@ -21962,6 +21967,8 @@ static sp_digit sp_4096_add_128(sp_digit* r, const sp_digit* a,
return c;
}

#ifdef WOLFSSL_SP_SMALL

/* Multiply a and b into r. (r = a * b)
*
* r A single precision integer.
Expand Down Expand Up @@ -50905,6 +50912,7 @@ static void sp_4096_mul_64(sp_digit* r, const sp_digit* a, const sp_digit* b)
);
}


/* AND m into each word of a and store in r.
*
* r A single precision integer.
Expand Down Expand Up @@ -50935,6 +50943,8 @@ static void sp_4096_mask_64(sp_digit* r, const sp_digit* a, sp_digit m)
#endif
}

#endif /* WOLFSSL_SP_SMALL */

/* Multiply a and b into r. (r = a * b)
*
* r A single precision integer.
Expand Down Expand Up @@ -50968,6 +50978,9 @@ SP_NOINLINE static void sp_4096_mul_128(sp_digit* r, const sp_digit* a,
(void)sp_4096_add_128(r + 128, r + 128, z2);
}


#ifdef WOLFSSL_SP_SMALL

/* Square a and put result in r. (r = a * a)
*
* r A single precision integer.
Expand Down Expand Up @@ -66355,6 +66368,8 @@ static void sp_4096_sqr_64(sp_digit* r, const sp_digit* a)
);
}

#endif /* WOLFSSL_SP_SMALL */

/* Square a and put result in r. (r = a * a)
*
* r A single precision integer.
Expand Down