Simplified RSA ans Schnorr functions