Skip to content

[manifest] Initial parser for the PCD #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ byteorder = { version = "1.3.4", default_features = false }
extend = "1.1"
paste = "1.0"
untrusted = "0.7"
zerocopy = "0.5.0"
zerocopy = "0.6.0"

[dependencies.libfuzzer-sys]
version = "0.3"
Expand Down
8 changes: 5 additions & 3 deletions src/manifest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ pub use generic::*;

#[cfg(feature = "std")]
pub mod owned;
pub mod pcd;
pub mod pfm;

#[cfg(test)]
Expand All @@ -104,11 +105,12 @@ wire_enum! {
///
/// This enum represents the "magic number" `u16` value in a maniest header.
pub enum ManifestType: u16 {
/// A ["Platform Firmware Manifest"], a manifest which describes
/// A ["Platform Firmware Manifest"][pfm], a manifest which describes
/// firmware that is allowed to run on a platfrom.
///
/// ["Platform Firmware Manifest"]: pfm/index.html
Pfm = 0x706d,
/// A ["Platform Configuration Descriptor"][pcd], a manifest which describes
/// devices an RoT is connected to.
Pcd = 0x8ebc,
}
}

Expand Down
Loading