Click or drag to resize

RSACryptoServiceProviderDecrypt Method

Decrypts data with the Crestron.SimplSharp.Cryptography.RSA algorithm.

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public byte[] Decrypt(
	byte[] rgb,
	bool fOAEP
)

Parameters

rgb  Byte
The data to be decrypted.
fOAEP  Boolean
true to perform direct Crestron.SimplSharp.Cryptography.RSA decryption using OAEP padding (only available on a computer running Microsoft Windows XP or later); otherwise, false to use PKCS#1 v1.5 padding.

Return Value

Byte
The decrypted data, which is the original plain text before encryption.
Exceptions
ExceptionCondition
CryptographicException The cryptographic service provider (CSP) cannot be acquired. -or- The fOAEP parameter is true and the length of the rgb parameter is greater than Crestron.SimplSharp.Cryptography.RSACryptoServiceProvider.KeySize. -or- The fOAEP parameter is true and OAEP is not supported.
ArgumentNullExceptionrgb is null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also