<PackageReference Include="SSH.NET" Version="2024.0.0" />

Renci.SshNet.Security.RsaKey

public class RsaKey : Key, IDisposable
Contains the RSA private and public key.
namespace Renci.SshNet.Security { public class RsaKey : Key, IDisposable { public BigInteger Modulus { get; } public BigInteger Exponent { get; } public BigInteger D { get; } public BigInteger P { get; } public BigInteger Q { get; } public BigInteger DP { get; } public BigInteger DQ { get; } public BigInteger InverseQ { get; } public RsaKey(SshKeyData publicKeyData); public RsaKey(byte[] privateKeyData); public RsaKey(BigInteger modulus, BigInteger exponent, BigInteger d, BigInteger p, BigInteger q, BigInteger inverseQ); public void Dispose(); protected virtual void Dispose(bool disposing); } }