mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-26 19:30:21 +00:00
Fix spurious assert (GH #1279)
This commit is contained in:
parent
9aa07aebbd
commit
60f81a77e0
@ -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;
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user