Goedel.Cryptography.KeyPair.GetKeyPair C# (CSharp) Method

GetKeyPair() public static method

Get the key associated with a system asymmetric provider.
public static GetKeyPair ( AsymmetricAlgorithm AsymmetricAlgorithm ) : KeyPair
AsymmetricAlgorithm System.Security.Cryptography.AsymmetricAlgorithm Asymmetric provider.
return KeyPair
        public static KeyPair GetKeyPair(AsymmetricAlgorithm AsymmetricAlgorithm) {

            var AsRSA = AsymmetricAlgorithm as RSACryptoServiceProvider;
            if (AsRSA != null) {
                return new RSAKeyPair(AsRSA);
                }

            return null;
            }