private byte[] Encrypt(byte[] buffer)
		{
			var RSAKeyInfo = new System.Security.Cryptography.RSAParameters();
			RSAKeyInfo.Modulus = EncKey;
			RSAKeyInfo.Exponent = Exponent;
			var rsa = new Mono.Security.Cryptography.RSAManaged();
			rsa.ImportParameters(RSAKeyInfo);
			return rsa.EncryptValue(buffer);
		}
Example #2
0
        private byte[] Encrypt(byte[] buffer)
        {
            var RSAKeyInfo = new System.Security.Cryptography.RSAParameters();

            RSAKeyInfo.Modulus  = EncKey;
            RSAKeyInfo.Exponent = Exponent;
            var rsa = new Mono.Security.Cryptography.RSAManaged();

            rsa.ImportParameters(RSAKeyInfo);
            return(rsa.EncryptValue(buffer));
        }
Example #3
0
 public Void Mono.Security.Cryptography.RSAManaged::remove_KeyGenerated(Mono.Security.Cryptography.RSAManaged/KeyGeneratedEventHandler)