### based on modular exponentiation and RSA alone ###