From b93ad432a05ead513aae2691dc45885202bb54ed Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 28 May 2017 19:03:08 +0100 Subject: [PATCH] rhodes: Don't try to CRT-recombine a single log. This is, properly speaking, a catacomb-python bug, I think. --- rhodes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rhodes b/rhodes index 092e97a..8152999 100755 --- a/rhodes +++ b/rhodes @@ -490,7 +490,8 @@ def step(dir, cmd, *args): p, n = C.MP(pstr), C.MP(nstr) qq.append(p**e) nn.append(n) - n = C.MPCRT(qq).solve(nn) + if len(qq) == 1: n = nn[0] + else: n = C.MPCRT(qq).solve(nn) ## One last check that this is the right answer. xx = G.pow(g, n) -- 2.11.0