public static Key GetPrivate(KeyPair KeyPair) { if (KeyPair as RSAKeyPair != null) { return new PrivateKeyRSA(KeyPair as RSAKeyPair); } return null; }