DiscreteLogarithmPackage M¶
ffcat.spad line 348 [edit on github]
DiscreteLogarithmPackage implements help functions for discrete logarithms in monoids using small cyclic groups.
- shanksDiscLogAlgorithm: (M, M, NonNegativeInteger) -> Union(NonNegativeInteger, failed)
shanksDiscLogAlgorithm(b, a, p)computesswithb^s = afor assuming thataandbare elements in a ‘small’ cyclic group of orderpby Shank'salgorithm. Note: this is a subroutine of the function discreteLog.