MACTripleDES Constructor (String^, array<Byte>^)
Initializes a new instance of the MACTripleDES class with the specified key data and using the specified implementation of TripleDES.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- strTripleDES
-
Type:
System::String^
The name of the TripleDES implementation to use.
- rgbKey
-
Type:
array<System::Byte>^
The secret key for MACTripleDES encryption.
| Exception | Condition |
|---|---|
| ArgumentNullException | The rgbKey parameter is null. |
| CryptographicUnexpectedOperationException | The strTripleDES parameter is not a valid name of a TripleDES implementation. |
The strTripleDES parameter is the friendly name of the TripleDES implementation type. The default implementation is System.Security.Cryptography.TripleDES.
The rgbKey parameter must be 16 or 24 bytes in length.
Available since 1.1