Breyta

Deila með


RSA.Decrypt Method

Definition

Overloads

Decrypt(Byte[], RSAEncryptionPadding)

When overridden in a derived class, decrypts the input data using the specified padding mode.

Decrypt(ReadOnlySpan<Byte>, RSAEncryptionPadding)

Decrypts the input data using the specified padding mode.

Decrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding)

Decrypts the input data using the specified padding mode.

Decrypt(Byte[], RSAEncryptionPadding)

Source:
RSA.cs
Source:
RSA.cs
Source:
RSA.cs

When overridden in a derived class, decrypts the input data using the specified padding mode.

public:
 virtual cli::array <System::Byte> ^ Decrypt(cli::array <System::Byte> ^ data, System::Security::Cryptography::RSAEncryptionPadding ^ padding);
public:
 abstract cli::array <System::Byte> ^ Decrypt(cli::array <System::Byte> ^ data, System::Security::Cryptography::RSAEncryptionPadding ^ padding);
public virtual byte[] Decrypt (byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding);
public abstract byte[] Decrypt (byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding);
abstract member Decrypt : byte[] * System.Security.Cryptography.RSAEncryptionPadding -> byte[]
override this.Decrypt : byte[] * System.Security.Cryptography.RSAEncryptionPadding -> byte[]
abstract member Decrypt : byte[] * System.Security.Cryptography.RSAEncryptionPadding -> byte[]
Public Overridable Function Decrypt (data As Byte(), padding As RSAEncryptionPadding) As Byte()
Public MustOverride Function Decrypt (data As Byte(), padding As RSAEncryptionPadding) As Byte()

Parameters

data
Byte[]

The data to decrypt.

padding
RSAEncryptionPadding

The padding mode.

Returns

Byte[]

The decrypted data.

Exceptions

data or padding is null.

A derived class must override this method.

padding is unknown, or not supported by this implementation.

-or-

The length of data is not equal to the number of bytes for KeySize.

-or-

This instance represents only a public key.

-or-

The decryption operation failed.

See also

Applies to

Decrypt(ReadOnlySpan<Byte>, RSAEncryptionPadding)

Source:
RSA.cs
Source:
RSA.cs
Source:
RSA.cs

Decrypts the input data using the specified padding mode.

public:
 cli::array <System::Byte> ^ Decrypt(ReadOnlySpan<System::Byte> data, System::Security::Cryptography::RSAEncryptionPadding ^ padding);
public byte[] Decrypt (ReadOnlySpan<byte> data, System.Security.Cryptography.RSAEncryptionPadding padding);
member this.Decrypt : ReadOnlySpan<byte> * System.Security.Cryptography.RSAEncryptionPadding -> byte[]
Public Function Decrypt (data As ReadOnlySpan(Of Byte), padding As RSAEncryptionPadding) As Byte()

Parameters

data
ReadOnlySpan<Byte>

The data to decrypt.

padding
RSAEncryptionPadding

The padding mode.

Returns

Byte[]

The decrypted data.

Exceptions

padding is null.

padding is unknown, or not supported by this implementation.

-or-

The decryption operation failed.

Applies to

Decrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding)

Source:
RSA.cs
Source:
RSA.cs
Source:
RSA.cs

Decrypts the input data using the specified padding mode.

public:
 int Decrypt(ReadOnlySpan<System::Byte> data, Span<System::Byte> destination, System::Security::Cryptography::RSAEncryptionPadding ^ padding);
public int Decrypt (ReadOnlySpan<byte> data, Span<byte> destination, System.Security.Cryptography.RSAEncryptionPadding padding);
member this.Decrypt : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.RSAEncryptionPadding -> int
Public Function Decrypt (data As ReadOnlySpan(Of Byte), destination As Span(Of Byte), padding As RSAEncryptionPadding) As Integer

Parameters

data
ReadOnlySpan<Byte>

The data to decrypt.

destination
Span<Byte>

The buffer to receive the decrypted data.

padding
RSAEncryptionPadding

The padding mode.

Returns

The total number of bytes written to destination.

Exceptions

padding is null.

The buffer in destination is too small to hold the decrypted data.

padding is unknown, or not supported by this implementation.

-or-

The decryption operation failed.

Applies to