Skip to content

Commit

Permalink
Merge #440
Browse files Browse the repository at this point in the history
440: X509 OID for attestation transparency for sgx_pkix. HRST-33. r=arai-fortanix a=arai-fortanix

This adds an X509 OID for attestation transparency. This change was previously made ont he sgx_pkix 0.1.x branch (for sgx_pkix version 0.1.4). This change adds the new OID on the master branch for sgx_pkix version 0.2.2, for when we migrate roche to the latest releases of the crates that belong to rust-sgx.

Co-authored-by: Daniel Arai <daniel@fortanix.com>
  • Loading branch information
bors[bot] and arai-fortanix authored May 5, 2023
2 parents 11e11c0 + f5cfca7 commit 5f413b5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion intel-sgx/sgx_pkix/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
# Unfortunately crates.io prevents us from changing the name to `sgx-pkix`
name = "sgx_pkix"
version = "0.2.1"
version = "0.2.2"
authors = ["Fortanix, Inc."]
edition = "2018"
license = "MPL-2.0"
Expand Down
2 changes: 2 additions & 0 deletions intel-sgx/sgx_pkix/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![recursion_limit = "256"]

#[macro_use]
extern crate quick_error;
#[macro_use]
Expand Down
3 changes: 3 additions & 0 deletions intel-sgx/sgx_pkix/src/oid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ lazy_static!{
pub static ref round5_5pke_0d: ObjectIdentifier = vec![1, 3, 6, 1, 4, 1, 49690, 4, 2].into();
pub static ref lms_15_10_sha256: ObjectIdentifier = vec![1, 3, 6, 1, 4, 1, 49690, 4, 3].into();

// Fortanix attestation transparency identifiers
pub static ref transparencyProofSgx: ObjectIdentifier = vec![1, 3, 6, 1, 4, 1, 49690, 5, 1].into();

// Intel SGX OID namespaces:
// https://download.01.org/intel-sgx/sgx-dcap/1.10/linux/docs/Intel_SGX_PCK_Certificate_CRL_Spec-1.4.pdf
// https://github.com/intel/SGXDataCenterAttestationPrimitives/blob/master/QuoteVerification/QVL/Src/AttestationParsers/src/ParserUtils.h#L57
Expand Down

0 comments on commit 5f413b5

Please sign in to comment.