MACTripleDES Constructor (String, Byte[])

 

Initializes a new instance of the MACTripleDES class with the specified key data and using the specified implementation of TripleDES.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public MACTripleDES(
	string strTripleDES,
	byte[] rgbKey
)

Parameters

strTripleDES
Type: System.String

The name of the TripleDES implementation to use.

rgbKey
Type: 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.

.NET Framework
Available since 1.1
Return to top
Show: