Add AVR fast multiply/square for secp224r1.

This commit is contained in:
Ken MacKay
2015-06-28 22:06:58 -07:00
parent 05cdd402f2
commit c57f52422b
2 changed files with 5987 additions and 0 deletions
+5986
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -1328,6 +1328,7 @@ static void omega_mult(uint64_t * RESTRICT result, const uint64_t * RESTRICT rig
/* Computes result = product % curve_p
from http://www.nsa.gov/ia/_files/nist-routines.pdf */
#if uECC_WORD_SIZE == 1
// TODO it may be faster to use the omega_mult method when fully asm optimized.
void vli_mmod_fast(uint8_t *RESTRICT result, uint8_t *RESTRICT product) {
uint8_t tmp[uECC_WORDS];
int8_t carry;