Пример #1
0
        public static advRSA InstanceDec(BigInteger N, BigInteger D)
        {
            advRSA buf = new advRSA();

            buf.N = N;
            buf.D = D;
            return(buf);
        }
Пример #2
0
        public static advRSA InstanceDec(byte[] N, byte[] D)
        {
            advRSA buf = new advRSA();

            buf.N = new BigInteger(N);
            buf.D = new BigInteger(D);
            return(buf);
        }
Пример #3
0
        public static advRSA InstanceEnc(byte[] N, byte[] E)
        {
            advRSA buf = new advRSA();

            buf.N = new BigInteger(N);
            buf.E = new BigInteger(E);
            return(buf);
        }
Пример #4
0
        public static advRSA InstanceEnc(BigInteger N, BigInteger E)
        {
            advRSA buf = new advRSA();

            buf.N = N;
            buf.E = E;
            return(buf);
        }
Пример #5
0
        public static advRSA Instance(byte[] P, byte[] Q, byte[] E)
        {
            advRSA buf = new advRSA();

            buf.P = new BigInteger(P);
            buf.Q = new BigInteger(Q);
            buf.E = new BigInteger(E);
            return(buf);
        }
Пример #6
0
        public static advRSA InstanceED(BigInteger E, BigInteger D, BigInteger N)
        {
            advRSA buf = new advRSA();

            buf.E = E;
            buf.D = D;
            buf.N = N;
            return(buf);
        }
Пример #7
0
        public static advRSA Instance(BigInteger P, BigInteger Q, BigInteger E)
        {
            advRSA buf = new advRSA();

            buf.P = P;
            buf.Q = Q;
            buf.E = E;
            return(buf);
        }