private void init() { millerRabbin = new MillerRabin(); random = new Random(); p = GetSimpleNum(length); q = GetSimpleNum(length); eyler = (p - 1) * (q - 1); N = p * q; montRed = new MontgomeryReducer(N); expSqr = new ExponentiationSquaring(); //byte[] arr = N.ToByteArray(); e = GetOpenExponent(2 * length / 3); d = MathMethods.GCD(e, eyler); }