Struttura BCryptBuffer (bcrypt.h)

Rappresenta un'API di crittografia generica: buffer CNG (Next Generation).

Nota

Questo struct è anche aliasato come NCryptBuffer.

Sintassi

typedef struct _BCryptBuffer {
  ULONG cbBuffer;
  ULONG BufferType;
  PVOID pvBuffer;
} BCryptBuffer, *PBCryptBuffer;

Members

cbBuffer

Dimensione del buffer, in byte.

BufferType

Tipo di buffer rappresentato da questa struttura. Questo può essere uno dei valori seguenti.

Valore Significato
KDF_HASH_ALGORITHM 0 Il buffer è un parametro chiave di derivazione (KDF) che contiene una stringa Unicode con terminazione null che identifica l'algoritmo hash. Questo può essere uno degli identificatori dell'algoritmo hash standard da Identificatori di algoritmo CNG o l'identificatore per un altro algoritmo hash registrato.

Le dimensioni specificate dal membro cbBuffer di questa struttura devono includere il carattere NULL terminante.
KDF_SECRET_PREPEND 1 Il buffer è un parametro KDF che contiene il valore da aggiungere all'inizio del messaggio immesso nella funzione hash.
KDF_SECRET_APPEND 2 Il buffer è un parametro KDF che contiene il valore da aggiungere alla fine del messaggio immesso nella funzione hash.
KDF_HMAC_KEY 3 Il buffer è un parametro KDF che contiene il valore di testo normale della chiave HMAC.
KDF_TLS_PRF_LABEL 4 Il buffer è un parametro KDF che contiene una stringa ANSI che contiene l'etichetta della funzione pseudo-casuale (TLS) di trasporto.
KDF_TLS_PRF_SEED 5 Il buffer è un parametro KDF che contiene il valore di inizializzazione PRF. Il valore di inizializzazione deve essere di 64 byte.
KDF_SECRET_HANDLE 6 Il buffer è un parametro KDF che contiene l'handle del contratto segreto. Il membro pvBuffer contiene un valore BCRYPT_SECRET_HANDLE e non è un puntatore.
KDF_TLS_PRF_PROTOCOL 7 Il buffer è un parametro KDF che contiene un valore DWORD che identifica la versione del protocollo SSL/TLS il cui algoritmo PRF deve essere usato.
KDF_ALGORITHMID 8 Il buffer è un parametro KDF che contiene la matrice di byte da usare come sottocampo AlgorithmID del parametro OtherInfo per SP 800-56A KDF.
KDF_PARTYUINFO 9 Il buffer è un parametro KDF che contiene la matrice di byte da usare come sottocampo PartyUInfo del parametro OtherInfo per SP 800-56A KDF.
KDF_PARTYVINFO 10 Il buffer è un parametro KDF che contiene la matrice di byte da usare come sottocampo PartyVInfo del parametro OtherInfo per SP 800-56A KDF.
KDF_SUPPPUBINFO 11 Il buffer è un parametro KDF che contiene la matrice di byte da usare come sottocampo SuppPubInfo del parametro OtherInfo per SP 800-56A KDF.
KDF_SUPPPRIVINFO 12 Il buffer è un parametro KDF che contiene la matrice di byte da usare come sottocampo SuppPrivInfo del parametro OtherInfo per SP 800-56A KDF.
KDF_LABEL 13 Per altre informazioni, vedere la funzione BCryptKeyDerivation .
KDF_CONTEXT 14 Per altre informazioni, vedere la funzione BCryptKeyDerivation .
KDF_SALT 15 Per altre informazioni, vedere la funzione BCryptKeyDerivation .
KDF_ITERATION_COUNT 16 Per altre informazioni, vedere la funzione BCryptKeyDerivation .

pvBuffer

Valore a 32 bit definito dal membro BufferType .

Requisiti

Requisito Valore
Intestazione bcrypt.h