MCPcopy Create free account
hub / github.com/c3d/tao3D / GetMaxExponent

Method GetMaxExponent

libcryptopp/cryptopp/gfpcrypt.cpp:261–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261Integer DL_GroupParameters_IntegerBased::GetMaxExponent() const
262{
263 return STDMIN(GetSubgroupOrder()-1, Integer::Power2(2*DiscreteLogWorkFactor(GetFieldType()*GetModulus().BitCount())));
264}
265
266unsigned int DL_GroupParameters_IntegerBased::GetDefaultSubgroupOrderSize(unsigned int modulusSize) const
267{

Callers 5

GenerateRandomMethod · 0.45
EncryptFunction · 0.45
GeneratePrivateKeyFunction · 0.45

Calls 2

DiscreteLogWorkFactorFunction · 0.85
BitCountMethod · 0.45

Tested by

no test coverage detected