MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / ModularRoot

Function ModularRoot

extra/yassl/taocrypt/src/integer.cpp:3871–3877  ·  view source on GitHub ↗

mod Root stuff

Source from the content-addressed store, hash-verified

3869
3870// mod Root stuff
3871Integer ModularRoot(const Integer &a, const Integer &dp, const Integer &dq,
3872 const Integer &p, const Integer &q, const Integer &u)
3873{
3874 Integer p2 = ModularExponentiation((a % p), dp, p);
3875 Integer q2 = ModularExponentiation((a % q), dq, q);
3876 return CRT(p2, p, q2, q, u);
3877}
3878
3879Integer CRT(const Integer &xp, const Integer &p, const Integer &xq,
3880 const Integer &q, const Integer &u)

Callers 1

CalculateInverseMethod · 0.85

Calls 2

ModularExponentiationFunction · 0.85
CRTFunction · 0.85

Tested by

no test coverage detected