Commit Graph

3 Commits

Author SHA1 Message Date
Janis Danisevskis
f7e5f24ff8 Add Vendor comand to ConfirmationUI support msg_formatting
This is not a HAL change. It just adds a command to msg_formatting.h as
a service to vendors who have to augment the protocol between the HAL
service and the TA or other implementation with janitorial commands that
don't effect the HAL interface.

Bug: 76152930
Test: No functional change
Change-Id: I5d4e5dadea29d4c7d51753939eda6c3f3571fae1
2018-03-22 10:43:22 -07:00
Janis Danisevskis
bb6377e679 Some changes required for the actual integration with a GUI renderer
These changes accumulated during the integration with the Pixel specific
impelemtation. The make it easiser to integrate an GUI renderer with the
core logic.

Bug: 63928580
Test: VTS tests and manual tests
Change-Id: I7001f60709ce806a16f098492bdb71eb05e6ca9a
2018-03-14 14:02:36 -07:00
Janis Danisevskis
a9f0fb0db1 Add confirmation UI support libaray
Includes:

A light weight CBOR generator
  This patch adds a header only CBOR generator and unit tests.
  It allows expressing CBOR datastructures in C++ for subsequent
  serialization. The implementation performs no memory allocation
  and only depends on stdint.h (for (u)intx_t) and stddefs.h (for size_t).
  It is tailored for use in constrained environments such as TEEs.

Convenience method for generating a SHA256 HMAC

Bug: 63928580
Test: android.hardware.confirmationui@support-lib-tests
Change-Id: I1d93a85503f861281e71e09b1ede5cbb74219694
2018-01-24 10:10:55 -08:00