Add utilities for working with keyblobs

Bug: 195310053
Test: build
Change-Id: Ibcb8de16b0710865ffa7518324a28c63c3a0f1ea
19 files changed
tree: e2c92269c5af0abe0af95bf3b242eb8f061e6ef2
  1. common/
  2. derive/
  3. scripts/
  4. .gitignore
  5. Android.bp
  6. Cargo.toml
  7. NOTICE
  8. OWNERS
  9. README.md
  10. rustfmt.toml
README.md

KeyMint/Rust

This repo holds work in progress for a Rust implementation of Android's KeyMint HAL.

Repo Structure

The codebase is divided as follows. Only the crates in bold are expected to be used in Android; the remainder are conveniences to allow development outside of Android.

SubdirCrate Namestd?Description
derivekmr-deriveYes (build-only)Proc macros for deriving the AsCborValue trait
commonkmr-commonNoCommon code used throughout KeyMint/Rust
halkmr-halYesHAL service implementation
boringsslkmr-boringsslYesBoring/OpenSSL-based implementations of crypto traits
testskmr-testsTests and test infrastructure
takmr-taNoTA implementation
ta-mainkmr-taYesTA implementation using TCP