Skip to content

Latest commit

 

History

History
197 lines (165 loc) · 5.03 KB

nf-bcrypt-bcryptenumalgorithms.md

File metadata and controls

197 lines (165 loc) · 5.03 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:bcrypt.BCryptEnumAlgorithms
BCryptEnumAlgorithms function (bcrypt.h)
Gets a list of the registered algorithm identifiers.
BCRYPT_ASYMMETRIC_ENCRYPTION_OPERATION
BCRYPT_CIPHER_OPERATION
BCRYPT_HASH_OPERATION
BCRYPT_RNG_OPERATION
BCRYPT_SECRET_AGREEMENT_OPERATION
BCRYPT_SIGNATURE_OPERATION
BCryptEnumAlgorithms
BCryptEnumAlgorithms function [Security]
bcrypt/BCryptEnumAlgorithms
security.bcryptenumalgorithms_func
security\bcryptenumalgorithms_func.htm
security
7fa227c0-2b80-49ab-8a19-72f8444d5507
12/05/2018
BCRYPT_ASYMMETRIC_ENCRYPTION_OPERATION, BCRYPT_CIPHER_OPERATION, BCRYPT_HASH_OPERATION, BCRYPT_RNG_OPERATION, BCRYPT_SECRET_AGREEMENT_OPERATION, BCRYPT_SIGNATURE_OPERATION, BCryptEnumAlgorithms, BCryptEnumAlgorithms function [Security], bcrypt/BCryptEnumAlgorithms, security.bcryptenumalgorithms_func
bcrypt.h
Windows
Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 [desktop apps \| UWP apps]
Bcrypt.lib
Bcrypt.dll
Windows
19H1
BCryptEnumAlgorithms
bcrypt/BCryptEnumAlgorithms
c++
APIRef
kbSyntax
DllExport
Bcrypt.dll
BCryptEnumAlgorithms

BCryptEnumAlgorithms function

-description

The BCryptEnumAlgorithms function gets a list of the registered algorithm identifiers.

-parameters

-param dwAlgOperations [in]

A value that specifies the algorithm operation types to include in the enumeration. This can be a combination of one or more of the following values.

Value Meaning
BCRYPT_CIPHER_OPERATION
0x00000001
Include the cipher algorithms in the enumeration.
BCRYPT_HASH_OPERATION
0x00000002
Include the hash algorithms in the enumeration.
BCRYPT_ASYMMETRIC_ENCRYPTION_OPERATION
0x00000004
Include the asymmetric encryption algorithms in the enumeration.
BCRYPT_SECRET_AGREEMENT_OPERATION
0x00000008
Include the secret agreement algorithms in the enumeration.
BCRYPT_SIGNATURE_OPERATION
0x00000010
Include the signature algorithms in the enumeration.
BCRYPT_RNG_OPERATION
0x00000020
Include the random number generator (RNG) algorithms in the enumeration.

-param pAlgCount [out]

A pointer to a ULONG variable to receive the number of elements in the ppAlgList array.

-param ppAlgList [out]

The address of a BCRYPT_ALGORITHM_IDENTIFIER structure pointer to receive the array of registered algorithm identifiers. This pointer must be passed to the BCryptFreeBuffer function when it is no longer needed.

-param dwFlags [in]

A set of flags that modify the behavior of this function. No flags are defined for this function.

-returns

Returns a status code that indicates the success or failure of the function.

Possible return codes include, but are not limited to, the following.

Return code Description
STATUS_SUCCESS
The function was successful.
STATUS_INVALID_PARAMETER
One or more parameters are not valid.
STATUS_NO_MEMORY
A memory allocation failure occurred.

-remarks

BCryptEnumAlgorithms can be called either from user mode or kernel mode. Kernel mode callers must be executing at PASSIVE_LEVEL IRQL.