<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.1" />

DotNetUtilities

public static class DotNetUtilities

public static AsymmetricCipherKeyPair GetECKeyPair(string algorithm, ECParameters ec)

public static ECPublicKeyParameters GetECPublicKey(string algorithm, ECParameters ec)

public static RSA ToRSA(RsaKeyParameters rsaKey)

public static RSA ToRSA(RsaKeyParameters rsaKey, CspParameters csp)

public static RSA ToRSA(RsaPrivateCrtKeyParameters privKey)

public static RSA ToRSA(RsaPrivateCrtKeyParameters privKey, CspParameters csp)

public static RSA ToRSA(RsaPrivateKeyStructure privKey)

public static RSA ToRSA(RsaPrivateKeyStructure privKey, CspParameters csp)