From 376ca366db0469f39b93af0af762090986ea75f2 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Mon, 29 Mar 2021 16:33:36 -0700 Subject: [PATCH] Fix typo in explanation --- doc/safegcd_implementation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/safegcd_implementation.md b/doc/safegcd_implementation.md index 8346d22..efb61b0 100644 --- a/doc/safegcd_implementation.md +++ b/doc/safegcd_implementation.md @@ -681,7 +681,7 @@ def update_de(d, e, t, M, Mi): cd, ce = (u*d + v*e) % 2**N, (q*d + r*e) % 2**N md -= (Mi*cd + md) % 2**N me -= (Mi*ce + me) % 2**N - cd, ce = u*d + v*e + Mi*md, q*d + r*e + Mi*me + cd, ce = u*d + v*e + M*md, q*d + r*e + M*me return cd >> N, ce >> N ```