Compartir a través de


RSA.DecryptValue(Byte[]) Método

Definición

Precaución

RSA.EncryptValue and DecryptValue are not supported and throw NotSupportedException. Use RSA.Encrypt and RSA.Decrypt instead.

Cuando se invalida en una clase derivada, descifra los datos de entrada con la clave privada.

public:
 virtual cli::array <System::Byte> ^ DecryptValue(cli::array <System::Byte> ^ rgb);
public:
 abstract cli::array <System::Byte> ^ DecryptValue(cli::array <System::Byte> ^ rgb);
public virtual byte[] DecryptValue (byte[] rgb);
[System.Obsolete("RSA.EncryptValue and DecryptValue are not supported and throw NotSupportedException. Use RSA.Encrypt and RSA.Decrypt instead.", DiagnosticId="SYSLIB0048", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public virtual byte[] DecryptValue (byte[] rgb);
public abstract byte[] DecryptValue (byte[] rgb);
abstract member DecryptValue : byte[] -> byte[]
override this.DecryptValue : byte[] -> byte[]
[<System.Obsolete("RSA.EncryptValue and DecryptValue are not supported and throw NotSupportedException. Use RSA.Encrypt and RSA.Decrypt instead.", DiagnosticId="SYSLIB0048", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member DecryptValue : byte[] -> byte[]
override this.DecryptValue : byte[] -> byte[]
abstract member DecryptValue : byte[] -> byte[]
Public Overridable Function DecryptValue (rgb As Byte()) As Byte()
Public MustOverride Function DecryptValue (rgb As Byte()) As Byte()

Parámetros

rgb
Byte[]

Texto de cifrado que se va a descifrar.

Devoluciones

Byte[]

Descifrado resultante del parámetro rgb en texto sin formato.

Atributos

Excepciones

No se admite esta llamada al método. Esta excepción se produce a partir de .NET Framework 4.6.

Comentarios

En .NET Framework 4.5.2 y versiones anteriores de .NET Framework, este método era abstract. Sin embargo, la única implementación de una clase derivada, RSACryptoServiceProvider.DecryptValue, también produjo una NotSupportedException excepción.

Se aplica a

Consulte también