Class RSAExtensions
RSA extensions.
Inherited Members
Namespace: GlitchedPolygons.ExtensionMethods
Assembly: GlitchedPolygons.ExtensionMethods.dll
Syntax
public static class RSAExtensions
Methods
FromXmlStringDotNetCore(RSA, string)
Loads an RSA key into an RSA instance from a xml-formatted key.
Declaration
public static void FromXmlStringDotNetCore(this RSA rsa, string xmlString)
Parameters
Type | Name | Description |
---|---|---|
RSA | rsa | RSA instance to load the key into. |
string | xmlString | XML-formatted RSA key. |
Exceptions
Type | Condition |
---|---|
Exception | Thrown if the passed |
ToXmlStringDotNetCore(RSA, bool)
Declaration
public static string ToXmlStringDotNetCore(this RSA rsa, bool includePrivateParameters)
Parameters
Type | Name | Description |
---|---|---|
RSA | rsa | RSA instance whose key parameters are to be exported. |
bool | includePrivateParameters | Export as private key if possible. |
Returns
Type | Description |
---|---|
string | application/xml |