DESCryptoServiceProviderCreateEncryptor(Byte, Byte) Method |
Creates a symmetric Data Encryption Standard (Crestron.SimplSharp.Cryptography.DES) encryptor object with the specified key
(Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.Key) and initialization vector (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.IV).
Namespace: Crestron.SimplSharp.CryptographyAssembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntaxpublic override ICryptoTransform CreateEncryptor(
byte[] rgbKey,
byte[] rgbIV
)
Parameters
- rgbKey Byte
- The secret key to use for the symmetric algorithm.
- rgbIV Byte
- The initialization vector to use for the symmetric algorithm.
Return Value
ICryptoTransformA symmetric Crestron.SimplSharp.Cryptography.DES encryptor object.
Exceptions| Exception | Condition |
|---|
| CryptographicException |
The value of the System.Security.Cryptography.SymmetricAlgorithm.Mode property
is System.Security.Cryptography.CipherMode.OFB. -or- The value of the System.Security.Cryptography.SymmetricAlgorithm.Mode
property is System.Security.Cryptography.CipherMode.CFB and the value of
the System.Security.Cryptography.SymmetricAlgorithm.FeedbackSize property
is not 8. -or- An invalid key size was used. -or- The algorithm key size
was not available.
|
Version Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also