public RsaInner(byte[] data, Cert cert) { if (data != null) { init(data); } else { init(cert); } }
void init(byte[] data) { this.data = (byte[])data.Clone(); this.cert = null; Cert.deleteOldTempFiles(); }
void init(Cert cert) { this.cert = (Cert)cert.Clone(); this.data = null; Cert.deleteOldTempFiles(); }
public Rsa(Cert cert) { init(cert); }
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; }
public RsaInner(Cert cert) { init(cert); }