#[repr(C)]pub struct Tcg2BootServiceCapability {
pub size: u8,
pub structure_version: Tcg2Version,
pub protocol_version: Tcg2Version,
pub hash_algorithm_bitmap: Tcg2HashAlgorithmBitmap,
pub supported_event_logs: Tcg2EventLogBitmap,
pub tpm_present_flag: u8,
pub max_command_size: u16,
pub max_response_size: u16,
pub manufacturer_id: u32,
pub number_of_pcr_banks: u32,
pub active_pcr_banks: Tcg2HashAlgorithmBitmap,
}
Expand description
Information about the protocol and the TPM device.
Fields§
§size: u8
Size of this structure.
structure_version: Tcg2Version
Version of the EFI TCG2 protocol.
protocol_version: Tcg2Version
Version of the EFI TCG2 protocol.
hash_algorithm_bitmap: Tcg2HashAlgorithmBitmap
Bitmap of supported hash algorithms.
supported_event_logs: Tcg2EventLogBitmap
Event log formats supported by the firmware.
tpm_present_flag: u8
Whether the TPM is present or not.
max_command_size: u16
Maximum size (in bytes) of a command that can be sent to the TPM.
max_response_size: u16
Maximum size (in bytes) of a response that can be provided by the TPM.
manufacturer_id: u32
Manufacturer ID.
See the TCG Vendor ID registry.
number_of_pcr_banks: u32
Maximum number of supported PCR banks (hashing algorithms).
active_pcr_banks: Tcg2HashAlgorithmBitmap
Bitmap of currently-active PCR banks (hashing algorithms). This
is a subset of the supported algorithms in hash_algorithm_bitmap
.
Trait Implementations§
Source§impl Clone for Tcg2BootServiceCapability
impl Clone for Tcg2BootServiceCapability
Source§fn clone(&self) -> Tcg2BootServiceCapability
fn clone(&self) -> Tcg2BootServiceCapability
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Tcg2BootServiceCapability
impl Debug for Tcg2BootServiceCapability
Source§impl Default for Tcg2BootServiceCapability
impl Default for Tcg2BootServiceCapability
Source§fn default() -> Tcg2BootServiceCapability
fn default() -> Tcg2BootServiceCapability
Returns the “default value” for a type. Read more
Source§impl Ord for Tcg2BootServiceCapability
impl Ord for Tcg2BootServiceCapability
Source§fn cmp(&self, other: &Tcg2BootServiceCapability) -> Ordering
fn cmp(&self, other: &Tcg2BootServiceCapability) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Tcg2BootServiceCapability
impl PartialOrd for Tcg2BootServiceCapability
impl Copy for Tcg2BootServiceCapability
impl Eq for Tcg2BootServiceCapability
impl StructuralPartialEq for Tcg2BootServiceCapability
Auto Trait Implementations§
impl Freeze for Tcg2BootServiceCapability
impl RefUnwindSafe for Tcg2BootServiceCapability
impl Send for Tcg2BootServiceCapability
impl Sync for Tcg2BootServiceCapability
impl Unpin for Tcg2BootServiceCapability
impl UnwindSafe for Tcg2BootServiceCapability
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more