public PrivateKey() { n = Extentions.p * Extentions.q; BigInteger y; BigInteger fi = (Extentions.p - 1) * (Extentions.q - 1); Extentions.GCD(Extentions.e, fi, out d, out y); d = (d + fi) % fi; k = 0; BigInteger res = Extentions.e * d % ((Extentions.p - 1) * (Extentions.q - 1)); BigInteger tmp = n; while (tmp != 0) { k++; tmp /= 256; } }