MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / MulP

Method MulP

libi2pd/Gost.cpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 EC_POINT * GOSTR3410Curve::MulP (const BIGNUM * n) const
43 {
44 BN_CTX * ctx = BN_CTX_new ();
45 auto p = EC_POINT_new (m_Group);
46 EC_POINT_mul (m_Group, p, n, nullptr, nullptr, ctx);
47 BN_CTX_free (ctx);
48 return p;
49 }
50
51 bool GOSTR3410Curve::GetXY (const EC_POINT * p, BIGNUM * x, BIGNUM * y) const
52 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected