Show / Hide Table of Contents

Class RSAExtensions

RSA extensions.

Inheritance
object
RSAExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 xmlString is not a valid RSA key.

ToXmlStringDotNetCore(RSA, bool)

Exports an RSA instance's key parameters into an XML-formatted string.

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

Back to top Generated by DocFX