Skip to main content

Crate libcros

Crate libcros 

Source

Re-exports§

pub use logging::Logger;
pub use keyval::*;

Modules§

crypto
Basic cryptography functions
execute
Easy-to-use functions to execute commands
gsc
Send/receive vendor commands to/from the GSC (Google Security Chip) / TPM.
keyval
Easy-to-use key=value system with types.
libargs
Lightweight argument parser
logging
Easy-to-use logging API
structs
Commonly-used structs
sysinfo
High-level functions to get information about a Chrome device
tlcl
A lightweight TPM2 library. Based on vboot’s Tlcl library.
ui
Basic drawing functions for TUIs

Macros§

LOG
Info log.
LOG_DBG
Debug log when verbose is enabled.
LOG_FATAL
Fatal log and exit.
LOG_FATAL_NOEXIT
Fatal log without exit.
tpm_nv_read
Macro to reduce boilerplate