Share via


Funzione SslHashHandshake

La funzione SslHashHandshake restituisce un handle all'hash dell'handshake.

Sintassi

SECURITY_STATUS WINAPI SslHashHandshake(
  _In_    NCRYPT_PROV_HANDLE hSslProvider,
  _Inout_ NCRYPT_HASH_HANDLE hHandshakeHash,
  _Out_   PBYTE              pbInput,
  _In_    DWORD              cbInput,
  _In_    DWORD              dwFlags
);

Parametri

hSslProvider [in]

Handle per l'istanza del provider di protocollo SSL (Secure Sockets Layer Protocol).

hHandshakeHash [in, out]

Handle per l'oggetto hash.

pbInput [out]

Indirizzo di un buffer che contiene i dati di cui eseguire l'hashing.

cbInput [in]

Dimensione, in byte, del buffer pbInput .

dwFlags [in]

Questo parametro è riservato per usi futuri.

Valore restituito

Se la funzione ha esito positivo, restituisce zero.

Commenti

La funzione SslHashHandshake è una delle tre funzioni usate per generare un hash da usare durante l'handshake SSL.

  1. La funzione SslCreateHandshakeHash viene chiamata per ottenere un handle hash.
  2. La funzione SslHashHandshake viene chiamata un numero qualsiasi di volte con l'handle hash per aggiungere dati all'hash.
  3. La funzione SslComputeFinishedHash viene chiamata con l'handle hash per ottenere il digest dei dati con hash.

Requisiti

Requisito Valore
Client minimo supportato
Windows Vista [solo app desktop]
Server minimo supportato
Windows Server 2008 [solo app desktop]
Intestazione
Sslprovider.h
DLL
Ncrypt.dll