Gather TPM Capabilities and cache them in Emulator
(&mut self)
| 175 | /// Gather TPM Capabilities and cache them in Emulator |
| 176 | /// |
| 177 | fn probe_caps(&mut self) -> Result<()> { |
| 178 | let mut caps: u64 = 0; |
| 179 | self.run_control_cmd( |
| 180 | Commands::CmdGetCapability, |
| 181 | &mut caps, |
| 182 | 0, |
| 183 | mem::size_of::<u64>(), |
| 184 | )?; |
| 185 | self.caps = caps; |
| 186 | Ok(()) |
| 187 | } |
| 188 | |
| 189 | /// Check if minimum set of capabilities are supported |
| 190 | fn check_caps(&mut self) -> bool { |