/// <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 RSAx(String keyInfo, int ModulusSize) { this.rsaParams = RSAxUtils.GetRSAxParameters(keyInfo, ModulusSize); UseCRTForPublicDecryption = true; }
/// <summary> /// Initialize the RSA class. /// </summary> /// <param name="rsaParams">Preallocated RSAxParameters containing the required keys.</param> public RSAx(RSAxParameters rsaParams) { this.rsaParams = rsaParams; UseCRTForPublicDecryption = true; }