Skip to content

Commit c1125bf

Browse files
committed
const-oid: add TPM related OIDs
1 parent 5c1bbfe commit c1125bf

File tree

3 files changed

+218
-0
lines changed

3 files changed

+218
-0
lines changed

const-oid/oiddbgen/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ const MDS: &[(&str, &str)] = &[
2525
// https://csrc.nist.gov/projects/computer-security-objects-register/algorithm-registration
2626
("fips202", include_str!("../fips202.md")),
2727
("rfc8894", include_str!("../rfc8894.md")),
28+
// Created from: https://trustedcomputinggroup.org
29+
("tcgtpm", include_str!("../tcg-tpm.md")),
2830
];
2931

3032
// Bases defined in other places.

const-oid/oiddbgen/tcg-tpm.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
Object Identifiers (OID) for TCG TPM
2+
------------------------------------
3+
4+
This document lists the OIDs for TPM registered by the Trusted Computing Group.
5+
6+
This file was manually created, as there exists no offical document that is easily parsable.
7+
8+
tcgOrganization OBJECT IDENTIFIER ::= { joint-iso-ccitt(2) international-organizations(23) 133 }
9+
10+
11+
tcg-tcpaSpecVersion OBJECT IDENTIFIER ::= { tcgOrganization 1 }
12+
13+
tcg-sv-tpm12 OBJECT IDENTIFIER ::= { tcg-tcpaSpecVersion 0 }
14+
tcg-sv-tpm20 OBJECT IDENTIFIER ::= { tcg-tcpaSpecVersion 2 }
15+
16+
17+
tcg-attribute OBJECT IDENTIFIER ::= { tcgOrganization 2 }
18+
19+
tcg-at-tpmManufacturer OBJECT IDENTIFIER ::= { tcg-attribute 1 }
20+
tcg-at-tpmModel OBJECT IDENTIFIER ::= { tcg-attribute 2 }
21+
tcg-at-tpmVersion OBJECT IDENTIFIER ::= { tcg-attribute 3 }
22+
tcg-at-platformManufacturer OBJECT IDENTIFIER ::= { tcg-attribute 4 }
23+
tcg-at-platformModel OBJECT IDENTIFIER ::= { tcg-attribute 5 }
24+
tcg-at-platformVersion OBJECT IDENTIFIER ::= { tcg-attribute 6 }
25+
tcg-at-securityQualities OBJECT IDENTIFIER ::= { tcg-attribute 10 }
26+
tcg-at-tpmProtectionProfile OBJECT IDENTIFIER ::= { tcg-attribute 11 }
27+
tcg-at-tpmSecurityTarget OBJECT IDENTIFIER ::= { tcg-attribute 12 }
28+
tcg-at-tbbProtectionProfile OBJECT IDENTIFIER ::= { tcg-attribute 13 }
29+
tcg-at-tbbSecurityTarget OBJECT IDENTIFIER ::= { tcg-attribute 14 }
30+
tcg-at-tpmIdLabel OBJECT IDENTIFIER ::= { tcg-attribute 15 }
31+
tcg-at-tpmSpecification OBJECT IDENTIFIER ::= { tcg-attribute 16 }
32+
tcg-at-tcgPlatformSpecification OBJECT IDENTIFIER ::= { tcg-attribute 17 }
33+
tcg-at-tpmSecurityAssertions OBJECT IDENTIFIER ::= { tcg-attribute 18 }
34+
tcg-at-tbbSecurityAssertions OBJECT IDENTIFIER ::= { tcg-attribute 19 }
35+
36+
37+
tcg-protocol OBJECT IDENTIFIER ::= { tcgOrganization 3 }
38+
39+
tcg-prt-tpmIdProtocol OBJECT IDENTIFIER ::= { tcg-protocol 1 }
40+
41+
42+
tcg-algorithm OBJECT IDENTIFIER ::= { tcgOrganization 4 }
43+
44+
tcg-algorithm-null OBJECT IDENTIFIER ::= { tcg-algorithm 1 }
45+
46+
47+
tcg-ce OBJECT IDENTIFIER ::= { tcgOrganization 6 }
48+
49+
tcg-ce-relevantCredentials OBJECT IDENTIFIER ::= { tcg-ce 2 }
50+
tcg-ce-relevantManifests OBJECT IDENTIFIER ::= { tcg-ce 3 }
51+
tcg-ce-virtualPlatformAttestationService OBJECT IDENTIFIER ::= { tcg-ce 4 }
52+
tcg-ce-migrationControllerAttestationService OBJECT IDENTIFIER ::= { tcg-ce 5 }
53+
tcg-ce-migrationControllerRegistrationService OBJECT IDENTIFIER ::= { tcg-ce 6 }
54+
tcg-ce-virtualPlatformBackupService OBJECT IDENTIFIER ::= { tcg-ce 7 }
55+
56+
tcg-kp OBJECT IDENTIFIER ::= { tcgOrganization 8 }
57+
58+
tcg-kp-EKCertificate OBJECT IDENTIFIER ::= { tcg-kp 1 }
59+
tcg-kp-PlatformCertificate OBJECT IDENTIFIER ::= { tcg-kp 2 }
60+
tcg-kp-AIKCertificate OBJECT IDENTIFIER ::= { tcg-kp 3 }

const-oid/src/db/gen.rs

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,6 +2427,78 @@ pub mod rfc8894 {
24272427
pub const ID_TRANSACTION_ID: crate::ObjectIdentifier =
24282428
crate::ObjectIdentifier::new_unwrap("2.16.840.1.113733.1.9.7");
24292429
}
2430+
pub mod tcgtpm {
2431+
pub const TCG_ORGANIZATION: crate::ObjectIdentifier =
2432+
crate::ObjectIdentifier::new_unwrap("2.23.133");
2433+
pub const TCG_TCPA_SPEC_VERSION: crate::ObjectIdentifier =
2434+
crate::ObjectIdentifier::new_unwrap("2.23.133.1");
2435+
pub const TCG_SV_TPM_12: crate::ObjectIdentifier =
2436+
crate::ObjectIdentifier::new_unwrap("2.23.133.1.0");
2437+
pub const TCG_SV_TPM_20: crate::ObjectIdentifier =
2438+
crate::ObjectIdentifier::new_unwrap("2.23.133.1.2");
2439+
pub const TCG_ATTRIBUTE: crate::ObjectIdentifier =
2440+
crate::ObjectIdentifier::new_unwrap("2.23.133.2");
2441+
pub const TCG_AT_TPM_MANUFACTURER: crate::ObjectIdentifier =
2442+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.1");
2443+
pub const TCG_AT_SECURITY_QUALITIES: crate::ObjectIdentifier =
2444+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.10");
2445+
pub const TCG_AT_TPM_PROTECTION_PROFILE: crate::ObjectIdentifier =
2446+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.11");
2447+
pub const TCG_AT_TPM_SECURITY_TARGET: crate::ObjectIdentifier =
2448+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.12");
2449+
pub const TCG_AT_TBB_PROTECTION_PROFILE: crate::ObjectIdentifier =
2450+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.13");
2451+
pub const TCG_AT_TBB_SECURITY_TARGET: crate::ObjectIdentifier =
2452+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.14");
2453+
pub const TCG_AT_TPM_ID_LABEL: crate::ObjectIdentifier =
2454+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.15");
2455+
pub const TCG_AT_TPM_SPECIFICATION: crate::ObjectIdentifier =
2456+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.16");
2457+
pub const TCG_AT_TCG_PLATFORM_SPECIFICATION: crate::ObjectIdentifier =
2458+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.17");
2459+
pub const TCG_AT_TPM_SECURITY_ASSERTIONS: crate::ObjectIdentifier =
2460+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.18");
2461+
pub const TCG_AT_TBB_SECURITY_ASSERTIONS: crate::ObjectIdentifier =
2462+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.19");
2463+
pub const TCG_AT_TPM_MODEL: crate::ObjectIdentifier =
2464+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.2");
2465+
pub const TCG_AT_TPM_VERSION: crate::ObjectIdentifier =
2466+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.3");
2467+
pub const TCG_AT_PLATFORM_MANUFACTURER: crate::ObjectIdentifier =
2468+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.4");
2469+
pub const TCG_AT_PLATFORM_MODEL: crate::ObjectIdentifier =
2470+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.5");
2471+
pub const TCG_AT_PLATFORM_VERSION: crate::ObjectIdentifier =
2472+
crate::ObjectIdentifier::new_unwrap("2.23.133.2.6");
2473+
pub const TCG_PROTOCOL: crate::ObjectIdentifier =
2474+
crate::ObjectIdentifier::new_unwrap("2.23.133.3");
2475+
pub const TCG_PRT_TPM_ID_PROTOCOL: crate::ObjectIdentifier =
2476+
crate::ObjectIdentifier::new_unwrap("2.23.133.3.1");
2477+
pub const TCG_ALGORITHM: crate::ObjectIdentifier =
2478+
crate::ObjectIdentifier::new_unwrap("2.23.133.4");
2479+
pub const TCG_ALGORITHM_NULL: crate::ObjectIdentifier =
2480+
crate::ObjectIdentifier::new_unwrap("2.23.133.4.1");
2481+
pub const TCG_CE: crate::ObjectIdentifier = crate::ObjectIdentifier::new_unwrap("2.23.133.6");
2482+
pub const TCG_CE_RELEVANT_CREDENTIALS: crate::ObjectIdentifier =
2483+
crate::ObjectIdentifier::new_unwrap("2.23.133.6.2");
2484+
pub const TCG_CE_RELEVANT_MANIFESTS: crate::ObjectIdentifier =
2485+
crate::ObjectIdentifier::new_unwrap("2.23.133.6.3");
2486+
pub const TCG_CE_VIRTUAL_PLATFORM_ATTESTATION_SERVICE: crate::ObjectIdentifier =
2487+
crate::ObjectIdentifier::new_unwrap("2.23.133.6.4");
2488+
pub const TCG_CE_MIGRATION_CONTROLLER_ATTESTATION_SERVICE: crate::ObjectIdentifier =
2489+
crate::ObjectIdentifier::new_unwrap("2.23.133.6.5");
2490+
pub const TCG_CE_MIGRATION_CONTROLLER_REGISTRATION_SERVICE: crate::ObjectIdentifier =
2491+
crate::ObjectIdentifier::new_unwrap("2.23.133.6.6");
2492+
pub const TCG_CE_VIRTUAL_PLATFORM_BACKUP_SERVICE: crate::ObjectIdentifier =
2493+
crate::ObjectIdentifier::new_unwrap("2.23.133.6.7");
2494+
pub const TCG_KP: crate::ObjectIdentifier = crate::ObjectIdentifier::new_unwrap("2.23.133.8");
2495+
pub const TCG_KP_EK_CERTIFICATE: crate::ObjectIdentifier =
2496+
crate::ObjectIdentifier::new_unwrap("2.23.133.8.1");
2497+
pub const TCG_KP_PLATFORM_CERTIFICATE: crate::ObjectIdentifier =
2498+
crate::ObjectIdentifier::new_unwrap("2.23.133.8.2");
2499+
pub const TCG_KP_AIK_CERTIFICATE: crate::ObjectIdentifier =
2500+
crate::ObjectIdentifier::new_unwrap("2.23.133.8.3");
2501+
}
24302502
pub const DB: super::Database<'static> = super::Database(&[
24312503
(&fips202::NIST_ALGORITHMS, "nistAlgorithms"),
24322504
(&fips202::HASH_ALGS, "hashAlgs"),
@@ -4506,4 +4578,88 @@ pub const DB: super::Database<'static> = super::Database(&[
45064578
(&rfc8894::ID_SENDER_NONCE, "id-senderNonce"),
45074579
(&rfc8894::ID_RECIPIENT_NONCE, "id-recipientNonce"),
45084580
(&rfc8894::ID_TRANSACTION_ID, "id-transactionID"),
4581+
(&tcgtpm::TCG_ORGANIZATION, "tcgOrganization"),
4582+
(&tcgtpm::TCG_TCPA_SPEC_VERSION, "tcg-tcpaSpecVersion"),
4583+
(&tcgtpm::TCG_SV_TPM_12, "tcg-sv-tpm12"),
4584+
(&tcgtpm::TCG_SV_TPM_20, "tcg-sv-tpm20"),
4585+
(&tcgtpm::TCG_ATTRIBUTE, "tcg-attribute"),
4586+
(&tcgtpm::TCG_AT_TPM_MANUFACTURER, "tcg-at-tpmManufacturer"),
4587+
(
4588+
&tcgtpm::TCG_AT_SECURITY_QUALITIES,
4589+
"tcg-at-securityQualities",
4590+
),
4591+
(
4592+
&tcgtpm::TCG_AT_TPM_PROTECTION_PROFILE,
4593+
"tcg-at-tpmProtectionProfile",
4594+
),
4595+
(
4596+
&tcgtpm::TCG_AT_TPM_SECURITY_TARGET,
4597+
"tcg-at-tpmSecurityTarget",
4598+
),
4599+
(
4600+
&tcgtpm::TCG_AT_TBB_PROTECTION_PROFILE,
4601+
"tcg-at-tbbProtectionProfile",
4602+
),
4603+
(
4604+
&tcgtpm::TCG_AT_TBB_SECURITY_TARGET,
4605+
"tcg-at-tbbSecurityTarget",
4606+
),
4607+
(&tcgtpm::TCG_AT_TPM_ID_LABEL, "tcg-at-tpmIdLabel"),
4608+
(&tcgtpm::TCG_AT_TPM_SPECIFICATION, "tcg-at-tpmSpecification"),
4609+
(
4610+
&tcgtpm::TCG_AT_TCG_PLATFORM_SPECIFICATION,
4611+
"tcg-at-tcgPlatformSpecification",
4612+
),
4613+
(
4614+
&tcgtpm::TCG_AT_TPM_SECURITY_ASSERTIONS,
4615+
"tcg-at-tpmSecurityAssertions",
4616+
),
4617+
(
4618+
&tcgtpm::TCG_AT_TBB_SECURITY_ASSERTIONS,
4619+
"tcg-at-tbbSecurityAssertions",
4620+
),
4621+
(&tcgtpm::TCG_AT_TPM_MODEL, "tcg-at-tpmModel"),
4622+
(&tcgtpm::TCG_AT_TPM_VERSION, "tcg-at-tpmVersion"),
4623+
(
4624+
&tcgtpm::TCG_AT_PLATFORM_MANUFACTURER,
4625+
"tcg-at-platformManufacturer",
4626+
),
4627+
(&tcgtpm::TCG_AT_PLATFORM_MODEL, "tcg-at-platformModel"),
4628+
(&tcgtpm::TCG_AT_PLATFORM_VERSION, "tcg-at-platformVersion"),
4629+
(&tcgtpm::TCG_PROTOCOL, "tcg-protocol"),
4630+
(&tcgtpm::TCG_PRT_TPM_ID_PROTOCOL, "tcg-prt-tpmIdProtocol"),
4631+
(&tcgtpm::TCG_ALGORITHM, "tcg-algorithm"),
4632+
(&tcgtpm::TCG_ALGORITHM_NULL, "tcg-algorithm-null"),
4633+
(&tcgtpm::TCG_CE, "tcg-ce"),
4634+
(
4635+
&tcgtpm::TCG_CE_RELEVANT_CREDENTIALS,
4636+
"tcg-ce-relevantCredentials",
4637+
),
4638+
(
4639+
&tcgtpm::TCG_CE_RELEVANT_MANIFESTS,
4640+
"tcg-ce-relevantManifests",
4641+
),
4642+
(
4643+
&tcgtpm::TCG_CE_VIRTUAL_PLATFORM_ATTESTATION_SERVICE,
4644+
"tcg-ce-virtualPlatformAttestationService",
4645+
),
4646+
(
4647+
&tcgtpm::TCG_CE_MIGRATION_CONTROLLER_ATTESTATION_SERVICE,
4648+
"tcg-ce-migrationControllerAttestationService",
4649+
),
4650+
(
4651+
&tcgtpm::TCG_CE_MIGRATION_CONTROLLER_REGISTRATION_SERVICE,
4652+
"tcg-ce-migrationControllerRegistrationService",
4653+
),
4654+
(
4655+
&tcgtpm::TCG_CE_VIRTUAL_PLATFORM_BACKUP_SERVICE,
4656+
"tcg-ce-virtualPlatformBackupService",
4657+
),
4658+
(&tcgtpm::TCG_KP, "tcg-kp"),
4659+
(&tcgtpm::TCG_KP_EK_CERTIFICATE, "tcg-kp-EKCertificate"),
4660+
(
4661+
&tcgtpm::TCG_KP_PLATFORM_CERTIFICATE,
4662+
"tcg-kp-PlatformCertificate",
4663+
),
4664+
(&tcgtpm::TCG_KP_AIK_CERTIFICATE, "tcg-kp-AIKCertificate"),
45094665
]);

0 commit comments

Comments
 (0)