MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / mul

Function mul

FHE/Rq_Element.cpp:95–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void mul(Rq_Element& ans,const Rq_Element& a,const Rq_Element& b)
96{
97 ans.partial_assign(a, b);
98 for (int i=0; i<=ans.lev; ++i)
99 mul(ans.a[i],a.a[i],b.a[i]);
100 if (ans.lev == 0 && ans.n_mults() == 1) {
101 ans.a[1].partial_assign(a.a[1]);
102 }
103}
104
105void mul(Rq_Element& ans,const Rq_Element& a,const bigint& b)
106{

Callers 2

ScaleMethod · 0.70
mul_by_p1Method · 0.70

Calls 3

to_modpFunction · 0.85
partial_assignMethod · 0.45
n_multsMethod · 0.45

Tested by

no test coverage detected