Share via


RSAKeyVault.Decrypt(Byte[], RSAEncryptionPadding) Method

Definition

Decrypts the input data using the specified padding mode.

public override byte[] Decrypt (byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding);
override this.Decrypt : byte[] * System.Security.Cryptography.RSAEncryptionPadding -> byte[]
Public Overrides 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

The padding is not supported.

The server returned an error. See Message for details returned from the server.

Applies to