BCRYPT_MULTI_HASH_OPERATION structure (bcrypt.h)

A BCRYPT_MULTI_HASH_OPERATION structure defines a single operation in a multi-hash operation.

Syntax

typedef struct _BCRYPT_MULTI_HASH_OPERATION {
  ULONG                      iHash;
  BCRYPT_HASH_OPERATION_TYPE hashOperation;
  PUCHAR                     pbBuffer;
  ULONG                      cbBuffer;
} BCRYPT_MULTI_HASH_OPERATION;

Members

iHash

An index into the multi-object state array of the hash state on which this computation operates. The first element of the array corresponds to an iHash value of zero (0). Valid values are less than the value of the nHashes parameter of the BCryptCreateMultiHash function.

hashOperation

A hash operation type, either BCRYPT_HASH_OPERATION_HASH_DATA or BCRYPT_HASH_OPERATION_FINISH_HASH.

If the value is BCRYPT_HASH_OPERATION_HASH_DATA, the operation performed is equivalent to calling the BCryptHashData function on the hash object array element with pbBuffer/cbBuffer pointing to the buffer to be hashed.

If the value is BCRYPT_HASH_OPERATION_FINISH_HASH, the operation performed is equivalent to calling the BCryptFinishHash function on the hash object array element with pbBuffer/cbBuffer pointing to the output buffer that receives the result.

pbBuffer

The buffer on which the operation works.

cbBuffer

The buffer on which the operation works.

Requirements

Requirement Value
Minimum supported client Windows 8.1 Update [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 Update [desktop apps | UWP apps]
Header bcrypt.h

See also

BCryptCreateMultiHash

BCryptFinishHash

BCryptHashData