//Create a RSAWrapper instance which will be used to sign and verify signed data. public RSAWrapper(string rsaName, HashAlgorithmName HashAlgorithmName) { this.rsaName = rsaName; this.RSAalg = HelperExtensions.StringToRSA(rsaName); this.hashAlgorithmName = HashAlgorithmName; this.hashAlgorithm = HashAlgorithm.Create(HashAlgorithmName.Name); }
//Create a RSAWrapper instance which will be used to encrypt and decrypt data. public RSAWrapper(string rsaName) { this.rsaName = rsaName; this.RSAalg = HelperExtensions.StringToRSA(rsaName); }