Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Add ToXmlString and FromXmlString implementations to RSA and DSA. #37593

Merged
merged 10 commits into from May 15, 2019
Expand Up @@ -24,6 +24,13 @@ public static DSA Create(int keySize)
return s_provider.Create(keySize);
}

public static DSA Create(in DSAParameters dsaParameters)
{
DSA dsa = s_provider.Create();
dsa.ImportParameters(dsaParameters);
return dsa;
}

/// <summary>
/// If false, 186-2 is assumed which implies key size of 1024 or less and only SHA-1
/// If true, 186-3 includes support for keysizes >1024 and SHA-2 algorithms
Expand Down