Fix RSA keygen on Android