Editare

Partajați prin


HMACSHA3_256 Constructors

Definition

Overloads

HMACSHA3_256()

Initializes a new instance of the HMACSHA3_256 class with a randomly generated key.

HMACSHA3_256(Byte[])

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

HMACSHA3_256()

Source:
HMACSHA3_256.cs
Source:
HMACSHA3_256.cs

Initializes a new instance of the HMACSHA3_256 class with a randomly generated key.

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

Remarks

HMACSHA3_256 is a type of keyed hash algorithm that is constructed from the SHA3-256 hash function and used as a Hash-based Message Authentication Code (HMAC). The HMAC process mixes a secret key with the message data, hashes the result with the hash function, mixes that hash value with the secret key again, and then applies the hash function a second time. The output hash is 256 bits in length.

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

Applies to

HMACSHA3_256(Byte[])

Source:
HMACSHA3_256.cs
Source:
HMACSHA3_256.cs

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

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

Parameters

key
Byte[]

The secret key for HMACSHA3_256. The key can be any length.

Exceptions

key is null.

Applies to