コード例 #1
0
ファイル: RSA.cs プロジェクト: Stonefacer/CPS-DAT-Reader
        public static advRSA InstanceDec(BigInteger N, BigInteger D)
        {
            advRSA buf = new advRSA();

            buf.N = N;
            buf.D = D;
            return(buf);
        }
コード例 #2
0
ファイル: RSA.cs プロジェクト: Stonefacer/CPS-DAT-Reader
        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
ファイル: RSA.cs プロジェクト: Stonefacer/CPS-DAT-Reader
        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
ファイル: RSA.cs プロジェクト: Stonefacer/CPS-DAT-Reader
        public static advRSA InstanceEnc(BigInteger N, BigInteger E)
        {
            advRSA buf = new advRSA();

            buf.N = N;
            buf.E = E;
            return(buf);
        }
コード例 #5
0
ファイル: RSA.cs プロジェクト: Stonefacer/CPS-DAT-Reader
        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
ファイル: RSA.cs プロジェクト: Stonefacer/CPS-DAT-Reader
        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
ファイル: RSA.cs プロジェクト: Stonefacer/CPS-DAT-Reader
        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);
        }