MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / CRT

Function CRT

src/cryptlib/nbtheory.cpp:422–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422Integer CRT(const Integer &xp, const Integer &p, const Integer &xq, const Integer &q, const Integer &u)
423{
424 // isn't operator overloading great?
425 return p * (u * (xq-xp) % q) + xp;
426}
427
428Integer CRT(const Integer &xp, const Integer &p, const Integer &xq, const Integer &q)
429{

Callers 2

ModularRootFunction · 0.85
InverseLucasFunction · 0.85

Calls 1

Tested by

no test coverage detected