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)
computess
withb^s = a
for assuming thata
andb
are elements in a ‘small’ cyclic group of orderp
by Shank's
algorithm. Note: this is a subroutine of the function discreteLog.