require crypto-number 0.2.2
use safe/fast variants of expmod where needed