From 8ecf7424b8823dbc44f9091d7ba730f48bf087c3 Mon Sep 17 00:00:00 2001 From: Patrick Longa Date: Mon, 23 Jul 2018 17:39:31 -0700 Subject: [PATCH] Update fp_x64.c --- src/P503/AMD64/fp_x64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/P503/AMD64/fp_x64.c b/src/P503/AMD64/fp_x64.c index 1cfe0a9..dc5bc7b 100644 --- a/src/P503/AMD64/fp_x64.c +++ b/src/P503/AMD64/fp_x64.c @@ -334,7 +334,7 @@ void mp_mul(const digit_t* a, const digit_t* b, digit_t* c, const unsigned int n void rdc_mont(const digit_t* ma, digit_t* mc) -{ // Efficient Montgomery reduction using comba and exploiting the special form of the prime p503. +{ // Montgomery reduction // mc = ma*R^-1 mod p503x2, where R = 2^512. // If ma < 2^512*p503, the output mc is in the range [0, 2*p503-1]. // ma is assumed to be in Montgomery representation. @@ -520,4 +520,4 @@ void rdc_mont(const digit_t* ma, digit_t* mc) rdc503_asm(ma, mc); #endif -} \ No newline at end of file +}