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

Function InverseLucas

src/cryptlib/nbtheory.cpp:827–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825*/
826
827Integer InverseLucas(const Integer &e, const Integer &m, const Integer &p, const Integer &q, const Integer &u)
828{
829 Integer d = (m*m-4);
830 Integer p2 = p-Jacobi(d,p);
831 Integer q2 = q-Jacobi(d,q);
832 return CRT(Lucas(EuclideanMultiplicativeInverse(e,p2), m, p), p, Lucas(EuclideanMultiplicativeInverse(e,q2), m, q), q, u);
833}
834
835Integer InverseLucas(const Integer &e, const Integer &m, const Integer &p, const Integer &q)
836{

Callers

nothing calls this directly

Calls 4

JacobiFunction · 0.85
CRTFunction · 0.85
LucasFunction · 0.85

Tested by

no test coverage detected