示例#1
0
        public static CustomRSAService Create(int keySizeBits)
        {
            var rsaService = new CustomRSAService();

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

            return(rsaService);
        }