Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

RSAManaged Class

Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9147)

Managed implementation of RSA algorithm.

Syntax
public class RSAManaged : RSA, IDisposable
Inheritance
Object
AsymmetricAlgorithm
RSA
RSAManaged
Implements
IDisposable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
AsymmetricAlgorithm.Clear()
AsymmetricAlgorithm.Dispose()
AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters)
AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters)
AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters)
AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters)
AsymmetricAlgorithm.ExportPkcs8PrivateKey()
AsymmetricAlgorithm.ExportPkcs8PrivateKeyPem()
AsymmetricAlgorithm.ExportSubjectPublicKeyInfo()
AsymmetricAlgorithm.ExportSubjectPublicKeyInfoPem()
AsymmetricAlgorithm.KeySize
AsymmetricAlgorithm.KeySizeValue
AsymmetricAlgorithm.LegalKeySizes
AsymmetricAlgorithm.LegalKeySizesValue
AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters, Span<Char>, Int32)
AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters, Span<Char>, Int32)
AsymmetricAlgorithm.TryExportPkcs8PrivateKeyPem(Span<Char>, Int32)
AsymmetricAlgorithm.TryExportSubjectPublicKeyInfoPem(Span<Char>, Int32)
RSA.Create()
RSA.Create(Int32)
RSA.Create(RSAParameters)
RSA.Create(String)
RSA.Decrypt(Byte[], RSAEncryptionPadding)
RSA.Decrypt(ReadOnlySpan<Byte>, RSAEncryptionPadding)
RSA.Decrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding)
RSA.Encrypt(Byte[], RSAEncryptionPadding)
RSA.Encrypt(ReadOnlySpan<Byte>, RSAEncryptionPadding)
RSA.Encrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding)
RSA.ExportRSAPrivateKey()
RSA.ExportRSAPrivateKeyPem()
RSA.ExportRSAPublicKey()
RSA.ExportRSAPublicKeyPem()
RSA.FromXmlString(String)
RSA.GetMaxOutputSize()
RSA.HashData(Byte[], Int32, Int32, HashAlgorithmName)
RSA.HashData(Stream, HashAlgorithmName)
RSA.ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)
RSA.ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>, Int32)
RSA.ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)
RSA.ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Char>)
RSA.ImportFromPem(ReadOnlySpan<Char>)
RSA.ImportPkcs8PrivateKey(ReadOnlySpan<Byte>, Int32)
RSA.ImportRSAPrivateKey(ReadOnlySpan<Byte>, Int32)
RSA.ImportRSAPublicKey(ReadOnlySpan<Byte>, Int32)
RSA.ImportSubjectPublicKeyInfo(ReadOnlySpan<Byte>, Int32)
RSA.SignData(Byte[], Int32, Int32, HashAlgorithmName, RSASignaturePadding)
RSA.SignData(Byte[], HashAlgorithmName, RSASignaturePadding)
RSA.SignData(Stream, HashAlgorithmName, RSASignaturePadding)
RSA.SignData(ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding)
RSA.SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding)
RSA.SignHash(Byte[], HashAlgorithmName, RSASignaturePadding)
RSA.SignHash(ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding)
RSA.SignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding)
RSA.ToXmlString(Boolean)
RSA.TryDecrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding, Int32)
RSA.TryEncrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding, Int32)
RSA.TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters, Span<Byte>, Int32)
RSA.TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters, Span<Byte>, Int32)
RSA.TryExportPkcs8PrivateKey(Span<Byte>, Int32)
RSA.TryExportRSAPrivateKey(Span<Byte>, Int32)
RSA.TryExportRSAPrivateKeyPem(Span<Char>, Int32)
RSA.TryExportRSAPublicKey(Span<Byte>, Int32)
RSA.TryExportRSAPublicKeyPem(Span<Char>, Int32)
RSA.TryExportSubjectPublicKeyInfo(Span<Byte>, Int32)
RSA.TryHashData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32)
RSA.TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding, Int32)
RSA.TrySignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding, Int32)
RSA.VerifyData(Byte[], Byte[], HashAlgorithmName, RSASignaturePadding)
RSA.VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName, RSASignaturePadding)
RSA.VerifyData(Stream, Byte[], HashAlgorithmName, RSASignaturePadding)
RSA.VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding)
RSA.VerifyHash(Byte[], Byte[], HashAlgorithmName, RSASignaturePadding)
RSA.VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding)

Constructors

Name Description
RSAManaged()

Initializes a new instance of the RSAManaged class with the key size of 1024.

RSAManaged(Int32)

Initializes a new instance of the RSAManaged class with the specified key size.

Properties

Name Description
KeyExchangeAlgorithm

Gets the name of the key exchange algorithm available with this implementation of RSA.

SignatureAlgorithm

Gets the name of the signature algorithm available with this implementation of RSA.

Methods

Name Description
Decrypt(Byte[])

Decrypts data with the RSA algorithm.

DecryptRaw(Byte[])

Decrypts data with the RSA algorithm. Replacement for deprecated DecryptValue(Byte[]) method.

DecryptValue(Byte[])

Decrypts data with the RSA algorithm.

Dispose(Boolean)

Releases the unmanaged resources and optionally releases the managed resources.

Encrypt(Byte[])

Encrypts data with the RSA algorithm.

EncryptRaw(Byte[])

Decrypts data with the RSA algorithm. Replacement for deprecated EncryptValue(Byte[]) method.

EncryptValue(Byte[])

Encrypts data with the RSA algorithm.

ExportParameters(Boolean)

Exports the RSAParameters.

ImportParameters(RSAParameters)

Imports the specified RSAParameters.

SignData(Byte[], HashAlgorithm)

Computes the hash value of the specified byte array using the specified hash algorithm, and signs the resulting hash value.

SignHash(Byte[], String)

Computes the signature for the specified hash value by signing it with the private key.

VerifyData(Byte[], HashAlgorithm, Byte[])

Verifies the specified signature data by comparing it to the signature computed for the specified data.

VerifyHash(Byte[], String, Byte[])

Verifies the specified signature data by comparing it to the signature computed for the specified hash value.

In This Article
  • Constructors
  • Properties
  • Methods
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies