diff options
author | lloyd <[email protected]> | 2006-08-16 16:18:37 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-08-16 16:18:37 +0000 |
commit | b8d15b3286d44ce8b5fe4938be7c501bb98c2547 (patch) | |
tree | 509767cad308a2b38a2b3dbf130119a6f91e9de1 /include | |
parent | d0a5ecdb4f7b1ddbefdc6a46525c276b9203abfe (diff) |
Split Montgomery reduction into two functions, the core algorithm linked
as C (for replacing by asm later), and another that performs a subtract
if needed (inside powm_mnt.cpp). That way an asm version of the Montgomery
algorithm won't have to deal with calling other functions.
Diffstat (limited to 'include')
-rw-r--r-- | include/mp_core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mp_core.h b/include/mp_core.h index fd489a561..77e43690a 100644 --- a/include/mp_core.h +++ b/include/mp_core.h @@ -47,9 +47,9 @@ void bigint_simple_mul(word[], const word[], u32bit, const word[], u32bit); void bigint_linmul_add(word[], u32bit, const word[], u32bit, word); /************************************************* -* Modular Reduction * +* Montgomery Reduction * *************************************************/ -void montgomery_reduce(word[], u32bit, const word[], u32bit, word); +void bigint_monty_redc(word[], u32bit, const word[], u32bit, word); /************************************************* * Misc Utility Operations * |