(&mut self)
| 429 | } |
| 430 | |
| 431 | fn stop_tpm(&mut self) -> Result<()> { |
| 432 | let mut res: PtmResult = 0; |
| 433 | |
| 434 | self.run_control_cmd(Commands::CmdStop, &mut res, 0, mem::size_of::<u32>())?; |
| 435 | |
| 436 | Ok(()) |
| 437 | } |
| 438 | |
| 439 | pub fn get_buffer_size(&mut self) -> usize { |
| 440 | self.set_buffer_size(0).unwrap_or(TPM_CRB_BUFFER_MAX) |
no test coverage detected