/// <summary> /// Initialize the RSA class from a XML KeyInfo string. /// </summary> /// <param name="keyInfo">XML Containing Key Information</param> /// <param name="ModulusSize">Length of RSA Modulus in bits.</param> public RSAProvider(string keyInfo, int ModulusSize) { rsaParams = RSAProviderUtils.GetRSAProviderParameters(keyInfo, ModulusSize); UseCRTForPublicDecryption = true; }
/// <summary> /// Initialize the RSA class. /// </summary> /// <param name="rsaParams">Preallocated RSAProviderParameters containing the required keys.</param> public RSAProvider(RSAProviderParameters rsaParams) { this.rsaParams = rsaParams; UseCRTForPublicDecryption = true; }