| 1 |
// Copyright 2020 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// https://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Package oid contains X.509 and TCG ASN.1 object identifiers. |
| 16 |
package oid |
| 17 |
|
| 18 |
// Trusted Computing Group (2.23.133) |
| 19 |
var ( |
| 20 |
TPMManufacturer = []int{2, 23, 133, 2, 1} |
| 21 |
TPMModel = []int{2, 23, 133, 2, 2} |
| 22 |
TPMVersion = []int{2, 23, 133, 2, 3} |
| 23 |
TCGPlatformSpecification = []int{2, 23, 133, 2, 17} |
| 24 |
TBBSecurityAssertions = []int{2, 23, 133, 2, 19} |
| 25 |
TPMSpecification = []int{2, 23, 133, 2, 16} |
| 26 |
TCGCredentialSpecification = []int{2, 23, 133, 2, 23} |
| 27 |
TCGCredentialType = []int{2, 23, 133, 2, 25} |
| 28 |
PlatformManufacturerStr = []int{2, 23, 133, 5, 1, 1} |
| 29 |
PlatformManufacturerID = []int{2, 23, 133, 5, 1, 2} |
| 30 |
PlatformConfigURI = []int{2, 23, 133, 5, 1, 3} |
| 31 |
PlatformModel = []int{2, 23, 133, 5, 1, 4} |
| 32 |
PlatformVersion = []int{2, 23, 133, 5, 1, 5} |
| 33 |
PlatformSerial = []int{2, 23, 133, 5, 1, 6} |
| 34 |
PlatformConfigurationV1 = []int{2, 23, 133, 5, 1, 7, 1} |
| 35 |
PlatformConfigurationV2 = []int{2, 23, 133, 5, 1, 7, 2} |
| 36 |
EKCertificate = []int{2, 23, 133, 8, 1} |
| 37 |
VerifiedTPMResidency = []int{2, 23, 133, 11, 1, 1} |
| 38 |
VerifiedTPMFixed = []int{2, 23, 133, 11, 1, 2} |
| 39 |
VerifiedTPMRestricted = []int{2, 23, 133, 11, 1, 3} |
| 40 |
EKPermIDSHA256 = []int{2, 23, 133, 12, 1} |
| 41 |
) |
| 42 |
|
| 43 |
// X.509 (2.23.23) |
| 44 |
// |
| 45 |
// https://www.itu.int/ITU-T/recommendations/rec.aspx?rec=14033 |
| 46 |
// https://tools.ietf.org/html/rfc5280 |
| 47 |
var ( |
| 48 |
SubjectDirectoryAttributes = []int{2, 5, 29, 9} |
| 49 |
SubjectAltName = []int{2, 5, 29, 17} |
| 50 |
CertificatePolicies = []int{2, 5, 29, 32} |
| 51 |
) |
| 52 |
|
| 53 |
// RFC 4043 |
| 54 |
// |
| 55 |
// https://tools.ietf.org/html/rfc4043 |
| 56 |
var ( |
| 57 |
PermanentIdentifier = []int{1, 3, 6, 1, 5, 5, 7, 8, 3} |
| 58 |
) |
| 59 |
|
| 60 |
// Google (1.3.6.1.4.1.11129) |
| 61 |
var ( |
| 62 |
CloudComputeInstanceIdentifier = []int{1, 3, 6, 1, 4, 1, 11129, 2, 1, 21} |
| 63 |
) |