BCryptFreeBuffer

The BCryptFreeBuffer function is used to free memory that was allocated by one of the CNG functions.

Syntax

void BCryptFreeBuffer(
         PVOID pvBuffer
)  

Parameters

pvBuffer
Type: PVOID 

[in] A pointer to the memory buffer to be freed.

Return value

None.

Remarks

BCryptFreeBuffer must be called in the same processor mode as the BCrypt API function that allocated the buffer. In addition, if the buffer was allocated at PASSIVE_LEVELIRQL, it must be freed at that IRQL. If the buffer was allocated at DISPATCH_LEVELIRQL, it can be freed at either DISPATCH_LEVELIRQL or PASSIVE_LEVELIRQL.

Requirements

Header: Declared in bcrypt.h.

Library: Use bcrypt.lib.