HMACSHA384 Constructors

Definition

Initializes a new instance of the HMACSHA384 class.

Overloads

HMACSHA384()

Initializes a new instance of the HMACSHA384 class by using a randomly generated key.

HMACSHA384(Byte[])

Initializes a new instance of the HMACSHA384 class by using the specified key data.

HMACSHA384()

Initializes a new instance of the HMACSHA384 class by using a randomly generated key.

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

Remarks

This constructor uses a 64-byte, randomly generated key.

See also

HMACSHA384(Byte[])

Initializes a new instance of the HMACSHA384 class by using the specified key data.

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

Parameters

key
Byte[]

The secret key for HMACSHA384 encryption. The key can be any length. However, the recommended size is 128 bytes. If the key is more than 128 bytes long, it is hashed (using SHA-384) to derive a 128-byte key. If it is less than 128 bytes long, it is padded to 128 bytes.

Exceptions

The key parameter is null.

Examples

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

See also

Applies to