RSACryptoServiceProviderDecrypt Method |
Decrypts data with the Crestron.SimplSharp.Cryptography.RSA algorithm.
Namespace: Crestron.SimplSharp.CryptographyAssembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntaxpublic 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
ByteThe decrypted data, which is the original plain text before encryption.
Exceptions| Exception | Condition |
|---|
| 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.
|
| ArgumentNullException | rgb is null. |
Version Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also