From 60f81a77e0c9a0e7ffc1ca1bc438ddfa2e43b78e Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 23 Jun 2024 11:59:34 -0400 Subject: [PATCH] Fix spurious assert (GH #1279) --- nbtheory.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/nbtheory.cpp b/nbtheory.cpp index 17fec4cb3..1652691e7 100644 --- a/nbtheory.cpp +++ b/nbtheory.cpp @@ -525,9 +525,6 @@ Integer MaurerProvablePrime(RandomNumberGenerator &rng, unsigned int bits) Integer CRT(const Integer &xp, const Integer &p, const Integer &xq, const Integer &q, const Integer &u) { - // Callers must ensure p and q are prime, GH #1249 - CRYPTOPP_ASSERT(IsPrime(p) && IsPrime(q)); - // isn't operator overloading great? return p * (u * (xq-xp) % q) + xp; /*