HMACSHA512.ProduceLegacyHmacValues Propriedade

Definição

Fornece uma solução alternativa para a implementação .NET Framework 2,0 do HMACSHA512 algoritmo, que é inconsistente com a implementação do .NET Framework 2,0 Service Pack 1.Provides a workaround for the .NET Framework 2.0 implementation of the HMACSHA512 algorithm, which is inconsistent with the .NET Framework 2.0 Service Pack 1 implementation.

public:
 property bool ProduceLegacyHmacValues { bool get(); void set(bool value); };
public bool ProduceLegacyHmacValues { get; set; }
member this.ProduceLegacyHmacValues : bool with get, set
Public Property ProduceLegacyHmacValues As Boolean

Valor da propriedade

Boolean

true para habilitar os aplicativos .NET Framework 2,0 Service Pack 1 para interagir com .NET Framework aplicativos 2,0; caso contrário, false .true to enable .NET Framework 2.0 Service Pack 1 applications to interact with .NET Framework 2.0 applications; otherwise, false.

Comentários

A finalidade da ProduceLegacyHmacValues Propriedade booliana é habilitar os aplicativos .NET Framework 2,0 Service Pack 1 para interagir com .NET Framework aplicativos 2,0.The purpose of the ProduceLegacyHmacValues Boolean property is to enable .NET Framework 2.0 Service Pack 1 applications to interact with .NET Framework 2.0 applications. Quando você define essa propriedade como true , o HMACSHA512 objeto produz valores que correspondem aos valores produzidos pelo .NET Framework 2,0.When you set this property to true, the HMACSHA512 object produces values that match the values produced by the .NET Framework 2.0. Você deve definir essa propriedade apenas uma vez depois de criar o objeto HMAC.You should set this property only once after you create your HMAC object. Você precisará redefinir sua chave posteriormente, conforme mostrado no exemplo a seguir.You will need to reset your key afterwards, as shown in the following example.

public static void Test()
{  
    var hmac = new HMACSHA512();  
    hmac.ProduceLegacyHmacValues = true;  
    hmac.Key = // ...Get the HMAC key.  
    // ...  
    // Use the HMAC algorithm.  
    // ...
}  

Aplica-se a