CertOIDToAlgId function

Use the CryptFindOIDInfo function instead of this function because ALG_ID identifiers are no longer supported in CNG. Use the CRYPT_OID_INFO_OID_KEY value in the dwKeyType parameter of the CryptFindOIDInfo function instead.

Windows Server 2003 and Windows XP:  The CertOIDToAlgId function converts the Abstract Syntax Notation One (ASN.1) object identifier (OID) string to the CryptoAPI algorithm identifier (ALG_ID).

Syntax

DWORD CertOIDToAlgId(
  LPCSTR pszObjId
);

Parameters

pszObjId

Pointer to the ASN.1 OID to be converted to an algorithm identifier.

Return Value

Returns the ALG_ID that corresponds to the object identifier (OID) or zero if no ALG_ID corresponds to the OID.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wincrypt.h
Library Crypt32.lib
DLL Crypt32.dll

See Also

Data Conversion Functions