No description
Find a file
A. Cody Schuffelen 097e625335 C++ AIDL on-device GateKeeper / SharedSecret impl
Because Keystore2 always requires valid auth tokens for user keys, this
copies and extends the existing in-guest GateKeeper implementation to
negotiate a shared secret key with Keymint in order to generate a
session key for signing auth tokens.

This implementation also uses AIDL rather than HIDL to interact with the
framework. It's also packaged in an APEX.

The files are cobbled together from a few sources:

- SoftGateKeeper.h is based on hardware/interfaces/gatekeeper/1.0/software/SoftGateKeeper.h
- GateKeeper.{cpp,h} are based on device/google/cuttlefish/guest/hals/gatekeeper/remote/remote_gatekeeper.{cpp,h}
- SharedSecret.{cpp,h} are based on device/google/cuttlefish/guest/hals/keymint/remote/remote_shared_secret.{cpp,h}
- Apex files are based on device/google/cuttlefish/guest/hals/keymint/rust/

Keymint modifications to use BOOT_TIME are lifted from

https://android-review.git.corp.google.com/c/platform/hardware/interfaces/+/2856649/6..8/security/keymint/aidl/default/ta/clock.rs#38

Bug: 332376454
Change-Id: I81845d5e6370bdddb1a24d67437964e03a5fb243
Test: Run with rust-nonsecure keymint on Cuttlefish
2024-04-11 13:53:32 -07:00
apexkey Add OWNERS file for apexkey 2023-09-13 21:18:46 +00:00
atrace Merge OWNERS files for atrace 2023-09-08 20:25:29 +00:00
audio audio: Use allow list for device connection types in TryConnectMissingDevice 2024-04-10 23:50:37 +00:00
authsecret Cleanup: use a shared apex_key 2023-10-10 10:30:03 +09:00
automotive Remove VNDK definition(s) 2024-04-05 02:29:07 +00:00
biometrics AIDL: disable Rust explicitly 2024-02-06 17:36:03 +00:00
bluetooth VtsHalBluetoothTargetTest: Link with libbluetooth_log 2024-03-29 17:16:11 +00:00
boot Merge "Revert^2 "Add bootcontrol HAL APEX"" into main 2023-10-11 04:20:38 +00:00
broadcastradio Merge Android 24Q1 Release (ab/11220357) 2024-01-30 10:36:50 -08:00
camera ExternalCameraHAL: fix CTS failures with callback for errors 2024-03-25 17:28:06 -07:00
cas Merge "CAS AIDL: Start thread pool for default service" into main 2023-11-10 04:14:03 +00:00
common Remove VNDK definition(s) 2024-04-05 02:29:07 +00:00
compatibility_matrices Allow vendor ISharedSecret HALs by any name 2024-04-10 12:59:00 -07:00
configstore Remove VNDK definition(s) 2024-04-05 02:29:07 +00:00
confirmationui Remove VNDK definition(s) 2024-04-05 02:29:07 +00:00
contexthub Remove Arthur from owner's file 2024-04-08 17:32:45 +00:00
drm Remove unused OWNERS file 2023-10-16 15:02:54 -07:00
dumpstate Add dumpstate HAL APEX 2023-09-19 23:48:35 +09:00
fastboot UpsideDownCake is now 34 2023-04-07 23:41:20 +00:00
gatekeeper C++ AIDL on-device GateKeeper / SharedSecret impl 2024-04-11 13:53:32 -07:00
gnss Allow multiple registered GNSS HALs am: 3344506a78 am: 653221fa8e am: 7bff0ebe01 2024-02-22 22:52:05 +00:00
graphics Remove VNDK definition(s) 2024-04-05 02:29:07 +00:00
health Merge Android 24Q1 Release (ab/11220357) 2024-01-30 10:36:50 -08:00
identity Remove unnecessary "_external" suffix from libcppbor 2024-03-28 20:42:34 -06:00
input Merge "[DON'T BLOCK] Test ownership migration rules" into main am: 27e97308c4 2024-02-07 01:45:21 +00:00
ir Fix the path to IR HAL 2023-12-12 18:06:34 +09:00
keymaster Replace std::basic_string<uint8_t> with std::vector 2024-02-12 20:15:47 -08:00
light Replace use of deprecated logging functions 2024-02-07 12:55:53 +01:00
macsec Define MACsec HAL and ref impl 2023-10-16 19:12:21 +00:00
media Remove VNDK definition(s) 2024-04-05 02:29:07 +00:00
memtrack Remove VNDK definition(s) 2024-04-05 02:29:07 +00:00
neuralnetworks Bump android.hardware.graphics.common V4->V5 2023-10-03 16:14:03 +00:00
nfc nfc(interface): Align owner's file with other NFC locations 2024-04-03 05:41:50 +00:00
oemlock Merge OWNERS files for oemlock 2023-09-08 21:06:03 +00:00
power Merge Android 24Q1 Release (ab/11220357) 2024-01-30 10:36:50 -08:00
radio Merge "[DON'T BLOCK] Test ownership migration rules" into main am: 27e97308c4 2024-02-07 01:45:21 +00:00
rebootescrow Add rebootescrow HAL into APEX 2023-10-23 14:52:43 +09:00
renderscript Remove VNDK definition(s) 2024-04-05 02:29:07 +00:00
scripts Add OWNERS files to support dirs 2023-09-11 17:03:06 +00:00
secure_element Tag vts module VtsHalSecureElementTargetTest with secure element sim 2024-01-31 03:12:59 +00:00
security C++ AIDL on-device GateKeeper / SharedSecret impl 2024-04-11 13:53:32 -07:00
sensors Update owners for sensor interfaces 2024-03-13 23:13:10 +00:00
soundtrigger Remove VNDK definition(s) 2024-04-05 02:29:07 +00:00
staging Add key parameter to deriveDicePolicyBoundKey 2024-04-09 22:53:21 +00:00
tests Fix fmq_test when HIDL is not supported 2024-03-29 16:12:51 +00:00
tetheroffload Make availability to com.android.tethering explicit 2023-12-21 23:39:41 +00:00
thermal thermal: support more temperature and cooling device type 2023-12-08 17:48:33 +00:00
threadnetwork [Thread] make sure buffer size is enough 2024-04-11 06:20:38 +00:00
tv Refine infeasible frontend status check am: 9b13077c4c 2024-04-03 23:57:27 +00:00
usb Usb compliance warning extension 2023-11-02 20:49:28 +00:00
uwb Merge "uwb: Keep VTS timeout to be consistent with UWB stack" into main 2024-03-21 16:33:18 +00:00
vibrator [DON'T BLOCK] Test ownership migration rules 2024-02-05 15:45:22 +00:00
vr Merge OWNERS files for vr 2023-09-11 16:32:19 +00:00
weaver [DON'T BLOCK] Test ownership migration rules 2024-02-05 15:45:22 +00:00
wifi Copy legacy HAL header files to the wifi 2024-04-02 18:12:31 +00:00
.clang-format Replace clang-format with symlink. 2019-01-18 14:26:33 -08:00
.gitignore Ignores vim temporary files from git 2024-01-16 14:48:57 +08:00
Android.bp Stop using group_static_libs property 2021-08-30 23:20:08 +00:00
CleanSpec.mk Clean up android.hardware.automotive.vehicle intermediates. 2023-08-25 13:29:36 -07:00
current.txt Fix inconsistencies in VehicleArea HAL documentation 2023-03-29 20:12:05 +00:00
METADATA Add METADATA to interfaces: Apache2=NOTICE 2020-05-01 10:59:55 -07:00
NOTICE Apache2 module license. 2016-08-30 11:28:36 -07:00
OWNERS remove guangzhu from OWNERS 2022-08-01 16:19:14 +00:00
PREUPLOAD.cfg Add generate_vehicle_property_enums repo hook. 2023-06-08 18:34:57 +00:00
TEST_MAPPING Add CtsStrictJavaPackagesTestCases to TEST_MAPPING presubmits 2023-12-16 00:33:37 +00:00
update-base-files.sh Generate constants from the audio HAL V7.1 enums 2022-02-14 19:08:09 +00:00
update-makefiles.sh Remove update scripts for VTS makefiles. 2019-02-28 18:39:29 +00:00