다음을 통해 공유


CRYPT_OID_INFO (Windows Embedded CE 6.0)

1/6/2010

This structure contains information about an object identifier (OID). These structures give the relationship among an OID identifier, its name, its group, and other information on the OID. These structures can be listed using the CryptEnumOIDInfo function.

Syntax

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
    Size of this structure in bytes.
  • pszOID
    Object identifier associated with this OID information.
  • pwszName
    Friendly name associated with an OID.
  • dwGroupId
    Group identifier value associated with this OID information.

    The following table shows the group identifiers that are currently defined for dwGroupId.

    Group identifier Description

    CRYPT_HASH_ALG_OID_GROUP_ID

    Hash algorithms

    CRYPT_ENCRYPT_ALG_OID_GROUP_ID

    Encryption algorithms

    CRYPT_PUBKEY_ALG_OID_GROUP_ID

    Public key algorithms

    CRYPT_SIGN_ALG_OID_GROUP_ID

    Signature algorithms

    CRYPT_RDN_ATTR_OID_GROUP_ID RDN

    Attributes

    CRYPT_EXT_OR_ATTR_OID_GROUP_ID

    Extensions or attributes

    CRYPT_ENHKEY_USAGE_OID_GROUP_ID

    Enhanced key usages

    CRYPT_POLICY_OID_GROUP_ID

    Policies

  • dwValue
    Numeric value associated with this OID information. Used with dwGroupId CRYPT_SIGN_ALG_OID_GROUP_ID
  • Algid
    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
    Not implemented and always set to zero.
  • ExtraInfo
    Extra information used to find or register OID information. 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

Requirements

Header wincrypt.h
Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

Cryptography Structures
CryptEnumOIDInfo
CryptFindOIDInfo