CRYPT_OID_INFO

The CRYPT_OID_INFO structure is used for finding or registering OID information.

typedef struct _CRYPT_OID_INFO {
    DWORD               cbSize;
    LPCSTR              pszOID;
    LPCWSTR             pwszName;
    DWORD               dwGroupId;
    union {
        DWORD               dwValue;
        ALG_ID              Algid;
        DWORD               dwLength;
    };
    CRYPT_DATA_BLOB     ExtraInfo;
} CRYPT_OID_INFO, *PCRYPT_OID_INFO;
typedef const CRYPT_OID_INFO CCRYPT_OID_INFO, *PCCRYPT_OID_INFO; 

Members

cbSize
Must be set to the size of this data structure.
pszOID
The object identifier associated with this OID information.
pwszName
The friendly name associated with the object identifier.
dwGroupId
Specifies the group ID associated with this OID information.

Currently defined group IDs are shown in the following table.
dwGroupId Value
CRYPT_HASH_ALG_OID_GROUP_ID 1
CRYPT_ENCRYPT_ALG_OID_GROUP_ID 2
CRYPT_PUBKEY_ALG_OID_GROUP_ID 3
CRYPT_SIGN_ALG_OID_GROUP_ID 4
CRYPT_RDN_ATTR_OID_GROUP_ID 5
CRYPT_EXT_OR_ATTR_OID_GROUP_ID 6
CRYPT_ENHKEY_USAGE_OID_GROUP_ID 7
CRYPT_POLICY_OID_GROUP_ID 8

dwValue
An arbitrary value associated with this OID information.

Applies for the following values of dwGroupId:

CRYPT_SIGN_ALG_OID_GROUP_ID

Algid
The algorithm identifier associated with this OID information.

Applies for the following values of dwGroupId:

CRYPT_HASH_ALG_OID_GROUP_ID,
CRYPT_ENCRYPT_ALG_OID_GROUP_ID,
CRYPT_PUBKEY_ALG_OID_GROUP_ID,
CRYPT_SIGN_ALG_OID_GROUP_ID

dwLength
The maximum length for the attribute string.

Applies for the following values of dwGroupId:

CRYPT_RDN_ATTR_OID_GROUP_ID

ExtraInfo
Specifies optional extra information for which the find or register of OID information is being performed.

Applies for the following values of dwGroupId:

CRYPT_PUBKEY_ALG_OID_GROUP_ID

CRYPT_SIGN_ALG_OID_GROUP_ID

CRYPT_RDN_ATTR_OID_GROUP_ID

See Also

CryptFindOIDInfo, CryptRegisterOIDInfo, CryptUnregisterOIDInfo