From 94fae73cdb244368c2f92cf82badfc0ecb56c541 Mon Sep 17 00:00:00 2001 Message-Id: <94fae73cdb244368c2f92cf82badfc0ecb56c541.1714930253.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 28 May 2017 19:03:08 +0100 Subject: [PATCH] rho.cc: Hoist `hex output' to the top. Organization: Straylight/Edgeware From: Mark Wooding Leaving it in the middle just makes a mess. --- rho.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rho.cc b/rho.cc index 7033258..087a331 100644 --- a/rho.cc +++ b/rho.cc @@ -162,6 +162,7 @@ int main(int argc, char *argv[]) ssize_t n; prog = argv[0]; + NTL::GF2X::HexOutput = 1; if (argc != 7) { std::fprintf(stderr, "usage: %s DPBITS gf2x P A B L\n", @@ -184,8 +185,6 @@ int main(int argc, char *argv[]) if (!ProbPrime(l)) barf("order isn't prime", 0); NTL::ZZ_p::init(l); - NTL::GF2X::HexOutput = 1; - if (power(a, l) != 1) barf("a has wrong order", 0); if (power(b, l) != 1) barf("b has wrong order", 0); -- [mdw]