Fix spurious assert (GH #1279)

This commit is contained in:
Jeffrey Walton 2024-06-23 11:59:34 -04:00
parent 9aa07aebbd
commit 60f81a77e0
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -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;
/*