libcros 0.2.0

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
use libcros::{LOG, Logger, kv_set, tlcl::TlclRead};

fn main() {
  Logger::init(true, true);
  let tpm = "/dev/tpm1";
  kv_set(libcros::keys::TPM_PATH, tpm);

  LOG!("reading 0xD bytes from index 0x1008 {}", tpm);
  let output = TlclRead(0x1008, 0xD);
  LOG!("read output: {:02X?}", output);
}