2 * Copyright (c) 2005-2009,2011-2016 Apple Inc. All Rights Reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
26 * oids.h - declaration of OID consts
30 /* We need to guard against the other copy of libDER.
31 * This is outside this header's guards because DERItem.h currently guards
32 * the DERItem type against this header (legacy from when this header also
33 * defined the type). */
35 #include <libDER/DERItem.h>
36 #endif /* _LIB_DER_H_ */
38 #ifndef _SECURITY_OIDS_H_
39 #define _SECURITY_OIDS_H_
48 oidRsa
, /* PKCS1 RSA encryption, used to identify RSA keys */
49 oidMd2Rsa
, /* PKCS1 md2withRSAEncryption signature alg */
50 oidMd4Rsa
, /* PKCS1 md4withRSAEncryption signature alg */
51 oidMd5Rsa
, /* PKCS1 md5withRSAEncryption signature alg */
52 oidSha1Rsa
, /* PKCS1 sha1withRSAEncryption signature alg */
53 oidSha256Rsa
, /* PKCS1 sha256WithRSAEncryption signature alg */
54 oidSha384Rsa
, /* PKCS1 sha384WithRSAEncryption signature alg */
55 oidSha512Rsa
, /* PKCS1 sha512WithRSAEncryption signature alg */
56 oidSha224Rsa
, /* PKCS1 sha224WithRSAEncryption signature alg */
57 oidEcPubKey
, /* ECDH or ECDSA public key in a certificate */
58 oidSha1Ecdsa
, /* ECDSA with SHA1 signature alg */
59 oidSha224Ecdsa
, /* ECDSA with SHA224 signature alg */
60 oidSha256Ecdsa
, /* ECDSA with SHA256 signature alg */
61 oidSha384Ecdsa
, /* ECDSA with SHA384 signature alg */
62 oidSha512Ecdsa
, /* ECDSA with SHA512 signature alg */
63 oidSha1Dsa
, /* ANSI X9.57 DSA with SHA1 signature alg */
64 oidMd2
, /* OID_RSA_HASH 2 */
65 oidMd4
, /* OID_RSA_HASH 4 */
66 oidMd5
, /* OID_RSA_HASH 5 */
67 oidSha1
, /* OID_OIW_ALGORITHM 26 */
68 oidSha1DsaOIW
, /* OID_OIW_ALGORITHM 27 */
69 oidSha1DsaCommonOIW
,/* OID_OIW_ALGORITHM 28 */
70 oidSha1RsaOIW
, /* OID_OIW_ALGORITHM 29 */
71 oidSha256
, /* OID_NIST_HASHALG 1 */
72 oidSha384
, /* OID_NIST_HASHALG 2 */
73 oidSha512
, /* OID_NIST_HASHALG 3 */
74 oidSha224
, /* OID_NIST_HASHALG 4 */
75 oidFee
, /* APPLE_ALG_OID 1 */
76 oidMd5Fee
, /* APPLE_ALG_OID 3 */
77 oidSha1Fee
, /* APPLE_ALG_OID 4 */
78 oidEcPrime192v1
, /* OID_EC_CURVE 1 prime192v1/secp192r1/ansiX9p192r1*/
79 oidEcPrime256v1
, /* OID_EC_CURVE 7 prime256v1/secp256r1*/
80 oidAnsip384r1
, /* OID_CERTICOM_EC_CURVE 34 ansip384r1/secp384r1*/
81 oidAnsip521r1
; /* OID_CERTICOM_EC_CURVE 35 ansip521r1/secp521r1*/
83 /* Standard X.509 Cert and CRL extensions. */
85 oidSubjectKeyIdentifier
,
87 oidPrivateKeyUsagePeriod
,
92 oidCrlDistributionPoints
,
93 oidCertificatePolicies
,
96 oidAuthorityKeyIdentifier
,
99 oidAnyExtendedKeyUsage
,
101 oidAuthorityInfoAccess
,
102 oidSubjectInfoAccess
,
107 oidMSNTPrincipalName
;
109 /* Policy Qualifier IDs for Internet policy qualifiers. */
114 /* X.501 Name IDs. */
119 oidStateOrProvinceName
,
121 oidOrganizationalUnitName
,
127 /* X.509 Extended Key Usages */
129 oidExtendedKeyUsageServerAuth
,
130 oidExtendedKeyUsageClientAuth
,
131 oidExtendedKeyUsageCodeSigning
,
132 oidExtendedKeyUsageEmailProtection
,
133 oidExtendedKeyUsageTimeStamping
,
134 oidExtendedKeyUsageOCSPSigning
,
135 oidExtendedKeyUsageIPSec
,
136 oidExtendedKeyUsageMicrosoftSGC
,
137 oidExtendedKeyUsageNetscapeSGC
;
139 /* Google Certificate Transparency OIDs */
141 oidGoogleEmbeddedSignedCertificateTimestamp
,
142 oidGoogleOCSPSignedCertificateTimestamp
;
146 #endif /* _SECURITY_OIDS_H_ */