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); }
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)); }
public Void Mono.Security.Cryptography.RSAManaged::remove_KeyGenerated(Mono.Security.Cryptography.RSAManaged/KeyGeneratedEventHandler)