Table of Contents

Class RSAKeyExtensions

Namespace
CMS.Helpers
Assembly
CMS.Helpers.dll

Helper class to manually add missing .NetStandard System.Security.Cryptography.RSA.FromXmlString(string) overload method.

public static class RSAKeyExtensions
Inheritance
object
RSAKeyExtensions

Methods

FromXmlString(RSA, string)

Initializes an System.Security.Cryptography.RSA object from the key information from an XML string.

public static void FromXmlString(RSA rsa, string xmlString)

Parameters

rsa RSA

System.Security.Cryptography.RSA to be initialized.

xmlString string

The XML string containing System.Security.Cryptography.RSA key information.

Exceptions

ArgumentNullException

Thrown when any of parameters are null.

CryptographicException

Thrown when the format of the xmlString parameter is not valid.