From 26ae55985bc7adf41fc19e5e6e8a8a68083457e1 Mon Sep 17 00:00:00 2001 From: Patrick Longa Date: Tue, 29 Mar 2022 15:53:21 -0700 Subject: [PATCH] Typo --- src/P503/P503_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/P503/P503_internal.h b/src/P503/P503_internal.h index 120f1e5..c67b27a 100644 --- a/src/P503/P503_internal.h +++ b/src/P503/P503_internal.h @@ -170,13 +170,13 @@ void fpcorrection503(digit_t* a); // 503-bit Montgomery reduction, c = a mod p void rdc503_asm(digit_t* ma, digit_t* mc); -// Field multiplication using Montgomery arithmetic, c = a*b*R^-1 mod p503, where R=2^768 +// Field multiplication using Montgomery arithmetic, c = a*b*R^-1 mod p503, where R=2^512 void fpmul503_mont(const digit_t* a, const digit_t* b, digit_t* c); void fpmul503(const digit_t* a, const digit_t* b, digit_t* c); void fpmul503_asm(const digit_t* a, const digit_t* b, digit_t* c); void mul503_asm(const digit_t* a, const digit_t* b, digit_t* c); -// Field squaring using Montgomery arithmetic, c = a*b*R^-1 mod p503, where R=2^768 +// Field squaring using Montgomery arithmetic, c = a*b*R^-1 mod p503, where R=2^512 void fpsqr503_mont(const digit_t* ma, digit_t* mc); // Field inversion, a = a^-1 in GF(p503)