Пример #1
0
 public RsaInner(byte[] data, Cert cert)
 {
     if (data != null)
     {
         init(data);
     }
     else
     {
         init(cert);
     }
 }
Пример #2
0
        void init(byte[] data)
        {
            this.data = (byte[])data.Clone();
            this.cert = null;

            Cert.deleteOldTempFiles();
        }
Пример #3
0
        void init(Cert cert)
        {
            this.cert = (Cert)cert.Clone();
            this.data = null;

            Cert.deleteOldTempFiles();
        }
Пример #4
0
 public Rsa(Cert cert)
 {
     init(cert);
 }
Пример #5
0
        void init(Cert cert)
        {
            Lock();
            string text1 = cert.X509Cert.GetKeyAlgorithm();
            byte[] buffer1 = cert.X509Cert.GetKeyAlgorithmParameters();
            byte[] buffer2 = cert.X509Cert.GetPublicKey();
            Oid oid1 = new Oid("1.2.840.113549.1.1.1", "RSA");

            rsa = (RSACryptoServiceProvider)(new PublicKey(oid1, new AsnEncodedData(oid1, buffer1), new AsnEncodedData(oid1, buffer2))).Key;
        }
Пример #6
0
 public RsaInner(Cert cert)
 {
     init(cert);
 }
Пример #7
0
 public RsaInner(Cert cert)
 {
     init(cert);
 }
Пример #8
0
 public Rsa(Cert cert)
 {
     init(cert);
 }