https://sites.math.washington.edu/~koblitz/crlogia.html