Fixed modular exponentiation, did some key generation