Skip to content

Commit 60f81a7

Browse files
committed
Fix spurious assert (GH #1279)
1 parent 9aa07ae commit 60f81a7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

nbtheory.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,6 @@ Integer MaurerProvablePrime(RandomNumberGenerator &rng, unsigned int bits)
525525

526526
Integer CRT(const Integer &xp, const Integer &p, const Integer &xq, const Integer &q, const Integer &u)
527527
{
528-
// Callers must ensure p and q are prime, GH #1249
529-
CRYPTOPP_ASSERT(IsPrime(p) && IsPrime(q));
530-
531528
// isn't operator overloading great?
532529
return p * (u * (xq-xp) % q) + xp;
533530
/*

0 commit comments

Comments
 (0)