MCPcopy Create free account
hub / github.com/ElementsProject/elements / square_n_mul

Function square_n_mul

src/crypto/muhash.cpp:117–121  ·  view source on GitHub ↗

in_out = in_out^(2^sq) * mul */

Source from the content-addressed store, hash-verified

115
116/** in_out = in_out^(2^sq) * mul */
117inline void square_n_mul(Num3072& in_out, const int sq, const Num3072& mul)
118{
119 for (int j = 0; j < sq; ++j) in_out.Square();
120 in_out.Multiply(mul);
121}
122
123} // namespace
124

Callers 1

GetInverseMethod · 0.85

Calls 2

SquareMethod · 0.80
MultiplyMethod · 0.80

Tested by

no test coverage detected