win32crypt.CryptFindOIDInfo

dict = CryptFindOIDInfo(KeyType, Key , GroupId )

Returns information about an algorithm identifier or object identifier

Parameters

KeyType : int

One of CRYPT_OID_INFO_OID_KEY,CRYPT_OID_INFO_NAME_KEY,CRYPT_OID_INFO_ALGID_KEY,CRYPT_OID_INFO_SIGN_KEY

Key : object

Type is dependent on KeyType

GroupId=0 : int

CRYPT_*_GROUP_ID constant, or 0

Return Value

Returns a dictionary of CRYPT_OID_INFO data

KeyType Type of Key
CRYPT_OID_INFO_OID_KEYAn szOID_* character string
CRYPT_OID_INFO_NAME_KEYA unicode name
CRYPT_OID_INFO_ALGID_KEYAn ALG_ID, one of the CALG_* integer constants
CRYPT_OID_INFO_SIGN_KEYA tuple of 2 CALG_* integers (hash algorithm, public key algorithm)