Closed AnnBenavides closed 5 years ago
Focus of function is changed, according to the paper it has to find an n exponent on 2^n -1 such that satisfies key generation rules
There were created two versions of this function due to different conditions to choose a prime where doing bit-to-bit encryption and block encryption
mersennePrime(x: int): int
Generate a mersenne prime p less or equal to x, and return k given by p = 2^k - 1Example code on java
Source