Commit graph

19 commits

Author SHA1 Message Date
Colin Cross
263d2df2c7 Use libcrypto_static instead of libcrypto
Replace libcrypto with libcrypto_static, which can be protected through
visibility to ensure only modules that don't affect FIPS certification
can use it.

Bug: 141248879
Test: m checkbuild
Change-Id: I8685cb06d15f3425eeb96d998ffda54c82dcd387
2019-09-18 11:07:09 -07:00
Steven Moreland
b3a4d3832e Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I075670b64eebbbbd6a6ae0e84ad51bf1c6f5ba36
2019-09-06 01:07:02 +00:00
Treehugger Robot
5faecb3e7d Merge "Add localization string for confirmationui." 2019-07-22 20:06:11 +00:00
Janis Danisevskis
54243610c7 Add localization string for confirmationui.
Bug: 118818420
Test: ConfirmationUITranslations-test.c
Change-Id: I45d96dcce1d459dd889fd48c0724092e642278c2
2019-07-19 15:55:23 -07:00
Felix
551b8d15ce Add interface info to .rc files
Signed-off-by: Felix <google@ix5.org>
Change-Id: I6d70bbdb66c3dce280bf6908c3750316a6f6cf70
2019-06-25 20:00:07 +02:00
Steven Moreland
1ae4615d9f Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I1f69d292bc23a7cc293a66110cb02d597e1019ad
2019-04-17 09:38:50 -07:00
Steven Moreland
a878aee9ab Update makefies: no 'types'
Bug: 123976090
Test: N/A
Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
2019-03-04 11:27:17 -08:00
Keun Soo YIM
68ae05dd2d pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-12-07 10:49:56 -08:00
Chih-Hung Hsieh
40b77ef6b5 Fix implicit fallthrough warnings.
Test: make checkbuild
Bug: 112564944
Change-Id: Iaaa0e2c325e860572d058ae27a7ad7dc00134564
2018-10-15 10:30:38 -07:00
Steven Moreland
3baa6bda4d confirmationui: explicitly declare only one thread.
Due to an unclear API, wireless_charger accidentally started
two threads.

Bug: 80102279
Test: use lshal to verify that the service only has one thread
Change-Id: Ic6bdb6ef0025173f4388f0550e00a6b4fc2e21df
2018-05-25 10:14:48 -07:00
Janis Danisevskis
0051181ac7 Fix for bug in Fix for wrongly initialized test key
With the last patch I exposed the auth token key to users of the
GenericOperation. But because the auth token key is never used in the
default implementation it did not show that the setHmacKey method did
not actually work. This patch fixes it.

Bug: 78456249
Test: Compile trusted app based on the GenericOperation
Change-Id: I25a80f985ce500e3658421cac62421133cc5b788
2018-04-26 16:27:12 -07:00
Janis Danisevskis
fe584fb317 Fix wrongly initialized test key.
According to spec the test key has 32 bytes set to TextKeyBits::BYTE.
The VTS test and default implmementation only set the first 16 bytes and
left the remaining 16 bytes zero.

This bug fixes both, the VTS test and the default implementation.

Also some long overdue changes to how the auth token key is handled
by the generic operation.

Bug: 78456249
Test: VtsHalConfirmationUIV1_0TargetTest
Change-Id: I509f2c2a99704ee00625e6f6169479771a3bc17a
2018-04-26 10:35:57 -07:00
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
3beaef8de4 Fix violation of least privilege principle
The confirmationui HAL does not need to run as user system.

Bug: 63928580
Test: All required services boot and can access what they need
Change-Id: Ic2d6edabf8cca8384a7e0ce49dfc5445a6ec1658
2018-03-14 14:02:36 -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
e0b1903d80 ConfirmationUI VTS tests
Bug: 63928580
Test: VtsHalConfirmationUIV1_0TargetTest
Change-Id: I964ac8fe0d36ec27e873aca748487ebc99d67693
2018-02-21 13:04:33 -08:00
Janis Danisevskis
a0c33ea1ba ConfirmationUI reference implementation
This reference implementation implements the core
logic of the confirmation provider including the
cryptographic operations. For a full implementation
a user interface and a few policy checks are missing.

Bug: 63928580
Test: VtsHalConfirmationUIV1_0TargetTest
Change-Id: I22ca138ed612979223f8e83792b525a31709e0fe
2018-01-24 10:10:55 -08: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
Janis Danisevskis
b70f2b2521 ConfirmationUI HAL definition
HAL definition for high assurance confirmation providers.
High assurance confirmation providers allow relying parties
to prompt the user for confirming a short piece of information.
If the user confirms, the result is a signed message indicating
that the user has seen the message. For a high assurance confirmation
provider this must also be true if Android and the Linux kernel
are compromised.

Bug: 63928580
Test: VTS tests in the following commit
Change-Id: I72017b39c01b4333d0146c648637a19fafcb7278
2018-01-24 10:10:55 -08:00