libcros 0.6.6

A Rust library that provides easy-to-use functions for interacting with a Chrome device
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::tlcl::tpm20::constants::nv_read_public_response;

pub struct Client;

impl Client {
  pub fn new() -> Self {
    Self
  }

  crate::tlcl::client::impl_tlcl_client_common!(tpm20);

  pub fn nv_read_public(&self, index: u32, presp: *mut nv_read_public_response) -> u32 {
    crate::tlcl::commands::tpm20::TlclNVReadPublic(index, presp as *mut core::ffi::c_void)
  }
}