A new cryptosystem using generalized Mersenne primes