On the security of some variants of rsa