public static CustomRSAService Create(int keySizeBits) { var rsaService = new CustomRSAService(); rsaService.KeySizeBits = keySizeBits; rsaService.Initialize(); return(rsaService); }
public static CustomRSAService Create(BigInteger e, BigInteger n, BigInteger d = default(BigInteger)) { var rsaService = new CustomRSAService { E = e, N = n, D = d }; return(rsaService); }