<PackageReference Include="System.Security.Cryptography.Algorithms" Version="4.0.0-beta-23225" />

RSA

public abstract class RSA : AsymmetricAlgorithm

protected RSA()

public abstract byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)

public abstract byte[] Encrypt(byte[] data, RSAEncryptionPadding padding)

public abstract RSAParameters ExportParameters(bool includePrivateParameters)

protected abstract byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)

protected abstract byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm)

public abstract void ImportParameters(RSAParameters parameters)

public byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)

public virtual byte[] SignData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)

public virtual byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)

public abstract byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)

public bool VerifyData(byte[] data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)

public virtual bool VerifyData(byte[] data, int offset, int count, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)

public bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)

public abstract bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)