SslStream.HashStrength Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Obtém um valor que identifica a força do algoritmo de hash usado por esta instância.
public:
virtual property int HashStrength { int get(); };
public virtual int HashStrength { get; }
member this.HashStrength : int
Public Overridable ReadOnly Property HashStrength As Integer
Valor de Propriedade
Um valor que especifica Int32 a força do HashAlgorithmType algoritmo, em bits. Os valores válidos são 128 ou 160.
Exemplos
O exemplo de código seguinte mostra as definições de criptografia para o fluxo especificado.
static void DisplaySecurityLevel(SslStream stream)
{
Console.WriteLine("Cipher: {0} strength {1}", stream.CipherAlgorithm, stream.CipherStrength);
Console.WriteLine("Hash: {0} strength {1}", stream.HashAlgorithm, stream.HashStrength);
Console.WriteLine("Key exchange: {0} strength {1}", stream.KeyExchangeAlgorithm, stream.KeyExchangeStrength);
Console.WriteLine("Protocol: {0}", stream.SslProtocol);
}
Private Shared Sub DisplaySecurityLevel(stream As SslStream)
Console.WriteLine("Cipher: {0} strength {1}", stream.CipherAlgorithm, stream.CipherStrength)
Console.WriteLine("Hash: {0} strength {1}", stream.HashAlgorithm, stream.HashStrength)
Console.WriteLine("Key exchange: {0} strength {1}", stream.KeyExchangeAlgorithm, stream.KeyExchangeStrength)
Console.WriteLine("Protocol: {0}", stream.SslProtocol)
End Sub
Observações
O valor desta propriedade é zero até ocorrer a autenticação.