Skip to content

Commit

Permalink
Fix spurious assert (GH #1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Jun 23, 2024
1 parent 9aa07ae commit 60f81a7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nbtheory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/*
Expand Down

0 comments on commit 60f81a7

Please sign in to comment.