1 /* Copyright (c) 2005-2009 Apple Inc. All Rights Reserved. */
4 * oids.h - declaration of OID consts
6 * Created Nov. 11 2005 by dmitch
9 #ifndef _LIB_DER_OIDS_H_
10 #define _LIB_DER_OIDS_H_
12 #include <libDER/libDER.h>
21 oidRsa
, /* PKCS1 RSA encryption, used to identify RSA keys */
22 oidMd2Rsa
, /* PKCS1 md2withRSAEncryption signature alg */
23 oidMd5Rsa
, /* PKCS1 md5withRSAEncryption signature alg */
24 oidSha1Rsa
, /* PKCS1 sha1withRSAEncryption signature alg */
25 oidSha256Rsa
, /* PKCS1 sha256WithRSAEncryption signature alg */
26 oidEcPubKey
, /* ECDH or ECDSA public key in a certificate */
27 oidSha1Ecdsa
, /* ECDSA with SHA1 signature alg */
28 oidSha224Ecdsa
, /* ECDSA with SHA224 signature alg */
29 oidSha256Ecdsa
, /* ECDSA with SHA256 signature alg */
30 oidSha384Ecdsa
, /* ECDSA with SHA384 signature alg */
31 oidSha512Ecdsa
, /* ECDSA with SHA512 signature alg */
32 oidMd2
, /* OID_RSA_HASH 2 */
33 oidMd4
, /* OID_RSA_HASH 4 */
34 oidMd5
, /* OID_RSA_HASH 5 */
35 oidSha1
, /* OID_OIW_ALGORITHM 26 */
36 oidSha256
, /* OID_NIST_HASHALG 1 */
37 oidSha384
, /* OID_NIST_HASHALG 2 */
38 oidSha512
, /* OID_NIST_HASHALG 3 */
39 oidSha224
; /* OID_NIST_HASHALG 4 */
41 /* Standard X.509 Cert and CRL extensions. */
43 oidSubjectKeyIdentifier
,
45 oidPrivateKeyUsagePeriod
,
49 oidCrlDistributionPoints
,
50 oidCertificatePolicies
,
53 oidAuthorityKeyIdentifier
,
56 oidAnyExtendedKeyUsage
,
58 oidAuthorityInfoAccess
,
65 /* Policy Qualifier IDs for Internet policy qualifiers. */
72 oidStateOrProvinceName
,
74 oidOrganizationalUnitName
,
79 oidExtendedKeyUsageServerAuth
,
80 oidExtendedKeyUsageClientAuth
,
81 oidExtendedKeyUsageCodeSigning
,
82 oidExtendedKeyUsageEmailProtection
,
83 oidExtendedKeyUsageOCSPSigning
,
84 oidExtendedKeyUsageIPSec
,
85 oidExtendedKeyUsageMicrosoftSGC
,
86 oidExtendedKeyUsageNetscapeSGC
,
87 /* Secure Boot Spec oid */
88 oidAppleSecureBootCertSpec
,
89 oidAppleProvisioningProfile
,
90 oidAppleApplicationSigning
,
91 oidAppleExtendedKeyUsageAppleID
,
92 oidAppleIntmMarkerAppleID
,
93 oidAppleIntmMarkerAppleID2
;
95 /* Compare two decoded OIDs. Returns true iff they are equivalent. */
96 bool DEROidCompare(const DERItem
*oid1
, const DERItem
*oid2
);
102 #endif /* _LIB_DER_UTILS_H_ */