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

Function ModularRoot

src/cryptlib/nbtheory.cpp:482–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482Integer ModularRoot(const Integer &a, const Integer &dp, const Integer &dq,
483 const Integer &p, const Integer &q, const Integer &u)
484{
485 Integer p2 = ModularExponentiation((a % p), dp, p);
486 Integer q2 = ModularExponentiation((a % q), dq, q);
487 return CRT(p2, p, q2, q, u);
488}
489
490Integer ModularRoot(const Integer &a, const Integer &e,
491 const Integer &p, const Integer &q)

Callers

nothing calls this directly

Calls 3

ModularExponentiationFunction · 0.85
CRTFunction · 0.85

Tested by

no test coverage detected