Uređivanje

Dijeli putem


MACTripleDES Constructors

Definition

Initializes a new instance of the MACTripleDES class.

Overloads

MACTripleDES()

Initializes a new instance of the MACTripleDES class.

MACTripleDES(Byte[])

Initializes a new instance of the MACTripleDES class with the specified key data.

MACTripleDES(String, Byte[])

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

MACTripleDES()

Initializes a new instance of the MACTripleDES class.

public:
 MACTripleDES();
public MACTripleDES ();
Public Sub New ()

Remarks

This constructor uses the default implementation of TripleDES.

Applies to

MACTripleDES(Byte[])

Initializes a new instance of the MACTripleDES class with the specified key data.

public:
 MACTripleDES(cli::array <System::Byte> ^ rgbKey);
public MACTripleDES (byte[] rgbKey);
new System.Security.Cryptography.MACTripleDES : byte[] -> System.Security.Cryptography.MACTripleDES
Public Sub New (rgbKey As Byte())

Parameters

rgbKey
Byte[]

The secret key for MACTripleDES encryption.

Exceptions

The rgbKey parameter is null.

Examples

For an example of how to use this constructor, see the MACTripleDES class.

Remarks

This constructor uses the default implementation of TripleDES. The rgbKey parameter must be 16 or 24 bytes in length.

Applies to

MACTripleDES(String, Byte[])

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

public:
 MACTripleDES(System::String ^ strTripleDES, cli::array <System::Byte> ^ rgbKey);
public MACTripleDES (string strTripleDES, byte[] rgbKey);
new System.Security.Cryptography.MACTripleDES : string * byte[] -> System.Security.Cryptography.MACTripleDES
Public Sub New (strTripleDES As String, rgbKey As Byte())

Parameters

strTripleDES
String

The name of the TripleDES implementation to use.

rgbKey
Byte[]

The secret key for MACTripleDES encryption.

Exceptions

The rgbKey parameter is null.

The strTripleDES parameter is not a valid name of a TripleDES implementation.

Remarks

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.

Applies to