HMACSHA384 Construtores

Definição

Inicializa uma nova instância da classe HMACSHA384.Initializes a new instance of the HMACSHA384 class.

Sobrecargas

HMACSHA384()

Inicializa uma nova instância da classe HMACSHA384 usando uma chave gerada aleatoriamente.Initializes a new instance of the HMACSHA384 class by using a randomly generated key.

HMACSHA384(Byte[])

Inicializa uma nova instância da classe HMACSHA384 usando os dados de chave especificados.Initializes a new instance of the HMACSHA384 class by using the specified key data.

HMACSHA384()

Inicializa uma nova instância da classe HMACSHA384 usando uma chave gerada aleatoriamente.Initializes a new instance of the HMACSHA384 class by using a randomly generated key.

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

Comentários

Esse construtor usa uma chave gerada aleatoriamente de 64 bytes.This constructor uses a 64-byte, randomly generated key.

Aplica-se a

HMACSHA384(Byte[])

Inicializa uma nova instância da classe HMACSHA384 usando os dados de chave especificados.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())

Parâmetros

key
Byte[]

A chave secreta para a criptografia HMACSHA384.The secret key for HMACSHA384 encryption. A chave pode ter qualquer tamanho.The key can be any length. No entanto, o tamanho recomendado é 128 bytes.However, the recommended size is 128 bytes. Se a chave tiver mais de 128 bytes, ela será transformada em hash (usando SHA-384) para derivar uma chave de 128 bytes.If the key is more than 128 bytes long, it is hashed (using SHA-384) to derive a 128-byte key. Se for menor que 128 bytes, ela será preenchida até 128 bytes.If it is less than 128 bytes long, it is padded to 128 bytes.

Exceções

O parâmetro key é null.The key parameter is null.

Exemplos

Para obter um exemplo de como usar esse construtor, consulte a HMACSHA384 classe.For an example of how to use this constructor, see the HMACSHA384 class.

Aplica-se a