make rsa functions public, ensure the exponent in generate is max