RSAOpenSsl.Decrypt(Byte[], RSAEncryptionPadding) Method

Definition

Decrypts the input data using the specified padding mode.

C#
public override byte[] Decrypt(byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding);

Parameters

data
Byte[]

The data to decrypt.

padding
RSAEncryptionPadding

The padding mode.

Returns

Byte[]

The decrypted data.

Exceptions

data or padding is null.

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.

Applies to

Proizvod Verzije
.NET Core 1.0, Core 1.1, 6
.NET Standard 2.0 (package-provided)

See also