keymaster: introduce keymaster enums

Having enums specified in proto files
makes them easier to share between
environments.

NOTE: the names of enums maintain
fidelity to those specified by the HAL,
but the values differ.  The values
had to change as nanopb allows enums
to span 28-bits, whereas the HAL uses
all 32-bits.

Change-Id: I44510bba48675f238f90f9e4a6ec01202129bd05
2 files changed
tree: 87e45c4a98b46953f61f6b7735af858ebac855d5
  1. libnos/
  2. libnos_datagram/
  3. libnos_transport/
  4. nugget/
  5. Android.bp
  6. BUILD
  7. LICENSE
  8. METADATA
  9. README.md
  10. WORKSPACE
README.md

Generic host components for Nugget

Nugget will be used in different contexts and with different hosts. This repo contains the components that can be shared between those hosts.

nugget

The nugget directory contains items that are shared between the host and the firmware. Those include:

  • shared headers
  • service protos

libnos

libnos is a C++ library for communication with a Nugget device. It offers an interface to manage a connection and exchange data and a generator for RPC stubs based on service protos.

libnos_datagram

libnos_datagram is a C library for exchanging datagrams with a Nugget device. This directory only contains the API of the library as the different platforms will need to implement it differently.

libnos_transport

libnos_transport is a C library for communicating with a Nugget device via the transport API. This is built on top of the libnos_datagram library for exchanging datagrams.