Commit graph

9338 commits

Author SHA1 Message Date
Phanindra Babu Pabba
6c529e5155 Handle key parameter conversion for FBE_ICE tag
FBE_ICE tag needs to be converted to KM 4.0 KeyParameter
before passing params to generate key.

Test: Boot-Up verified with QSSI 12.0 and both KM 4.0 and
KM 4.1

CRs-Fixed: 2978933
Change-Id: I6ea35bd1b9ebe08d7069c596a985153bd017c28d
2024-09-07 23:33:14 +02:00
Android Build Coastguard Worker
5a37034a3a Snap for 11959661 from 5c946199a9 to 24Q3-release
Change-Id: I53923d22c6c69c3f1ac73dddbcca8b8f0cba9c82
2024-06-12 23:26:16 +00:00
David Drysdale
5c946199a9 Merge "Shift to idiomatic use of map_err" into main am: a730f5b7f3 am: e975a41eed
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3118733

Change-Id: If33ad6917ca94d04140bbfaeecc09953b10db285
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 10:36:41 +00:00
David Drysdale
e975a41eed Merge "Shift to idiomatic use of map_err" into main am: a730f5b7f3
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3118733

Change-Id: I477e004270ff0278cf43fc529497d5da70f8c83b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 10:19:46 +00:00
David Drysdale
a730f5b7f3 Merge "Shift to idiomatic use of map_err" into main 2024-06-12 09:59:49 +00:00
Treehugger Robot
42196d3e7e Merge "libc++fs is part of libc++ now." into main am: b6e21e8ebb am: 5d9bdaae0e
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3126253

Change-Id: Id5a4b3d5649e9202854088a303de2e88c8973835
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 00:29:15 +00:00
Treehugger Robot
5d9bdaae0e Merge "libc++fs is part of libc++ now." into main am: b6e21e8ebb
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3126253

Change-Id: I70ec83e2bf14a1c83f263ec9f37d1ffe949c5a28
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 00:12:43 +00:00
Treehugger Robot
b6e21e8ebb Merge "libc++fs is part of libc++ now." into main 2024-06-11 23:56:46 +00:00
Android Build Coastguard Worker
ee9c5582fa Snap for 11954976 from 89b565a453 to 24Q3-release
Change-Id: I869666a5bdcfb088efa2ccc044a19b0985b7596b
2024-06-11 23:26:43 +00:00
Treehugger Robot
e5edc6c2cc Merge "libc++fs is part of libc++ now." into main am: 2241a73f0c am: 112b326386
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3126893

Change-Id: Ie75731f092923e52cc13a1bb8f7015f483a09588
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 21:04:08 +00:00
Treehugger Robot
112b326386 Merge "libc++fs is part of libc++ now." into main am: 2241a73f0c
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3126893

Change-Id: Ic28798b628199e085988bb5349871be2c900c1c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 20:48:00 +00:00
Treehugger Robot
2241a73f0c Merge "libc++fs is part of libc++ now." into main 2024-06-11 20:30:42 +00:00
Elliott Hughes
3e55962801 libc++fs is part of libc++ now.
Change-Id: I82f3d84eed71bf9e9fe25c70ff0b4c59fa431ad7
2024-06-11 19:33:33 +00:00
Elliott Hughes
04590324c7 libc++fs is part of libc++ now.
Change-Id: I49d8f35e1e6b9c149a55ef3033d0af60309d3a35
2024-06-11 15:29:51 +00:00
Alice Wang
89b565a453 Merge "Skip CSR generation for AVF RKP HAL when it is not supported" into main am: 7aa7f77d53 am: 9eb0afcecb
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3118041

Change-Id: I1d1909438fa27862dcc27d1de9a96a3968e2ceeb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 08:11:34 +00:00
David Drysdale
db7ddde2e4 Shift to idiomatic use of map_err
Test: keystore2_test
Test: legacykeystore_test
Flag: none, pure refactoring
Change-Id: I4b9f1b0d47145846764ff46676b10035f7f2fb6a
2024-06-11 08:59:04 +01:00
Alice Wang
9eb0afcecb Merge "Skip CSR generation for AVF RKP HAL when it is not supported" into main am: 7aa7f77d53
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3118041

Change-Id: Icd361d888527ebe412fc4cca0075653458676af1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 07:50:45 +00:00
Alice Wang
7aa7f77d53 Merge "Skip CSR generation for AVF RKP HAL when it is not supported" into main 2024-06-11 07:07:37 +00:00
Android Build Coastguard Worker
7b5f8762fc Snap for 11949167 from 057ae1223f to 24Q3-release
Change-Id: I25026b88ba4b518b8f71072a68b89f1680a8ad05
2024-06-10 23:26:10 +00:00
Karuna Wadhera
057ae1223f Merge "Query for /default and /strongbox IRPCs directly" into main am: 77eb25fc04 am: a03d913d76
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3122032

Change-Id: I0db09863f497bf829ef0585f270a1762fd2c45d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 18:22:58 +00:00
Karuna Wadhera
a03d913d76 Merge "Query for /default and /strongbox IRPCs directly" into main am: 77eb25fc04
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3122032

Change-Id: Ife871544eac4c58cd7e1683b39d8a90ddf4f9c77
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 18:05:34 +00:00
Karuna Wadhera
77eb25fc04 Merge "Query for /default and /strongbox IRPCs directly" into main 2024-06-10 17:46:06 +00:00
Karuna Wadhera
9ae66c0bef Query for /default and /strongbox IRPCs directly
This removes the need to query for and call find on all IRPCs.

Bug: 312427637
Test: atest -p --include-subdirs system/security/keystore2
Change-Id: I8893627e983eac577b9920497f926f12c0e98271
2024-06-10 15:10:40 +00:00
David Drysdale
f07fa6661b Merge "Simplify map_or_log_err" into main am: d49e9ba243 am: b51d4fdb5e
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3118732

Change-Id: Ief4fb44a6f2208deb3dfc896acc4a1e5e2602e81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 11:25:49 +00:00
David Drysdale
b51d4fdb5e Merge "Simplify map_or_log_err" into main am: d49e9ba243
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3118732

Change-Id: I0e6333ec9562923ac5590d417ed5cddca00adb3c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 11:05:54 +00:00
David Drysdale
d49e9ba243 Merge "Simplify map_or_log_err" into main 2024-06-10 10:52:00 +00:00
David Drysdale
5238d77a83 Simplify map_or_log_err
All (non-test) invocations use the same second argument `Ok` (which
actually acts as a 1-arg closure `|v| Ok(v)`), so no need to have it as
a parameter.  The common second argument just maps `Ok(v)` to `Ok(v)`,
which means that `map_err()` can be used instead of `map_or_else()`,
and the same type parameter is used for both input and output.

Test: legacykeystore_test
Test: keystore2_test
Flag: None, pure refactor
Change-Id: I46b6e327d0b546df6be6664781a52bb888c04eca
2024-06-07 16:34:53 +00:00
Alice Wang
16e3442965 Skip CSR generation for AVF RKP HAL when it is not supported
Test: Run `adb shell rkp_factory_extraction_tool
--output_format build+csr` on a device AVF RKP HAL is unsupported

Change-Id: I8f1ffa63710be6f566fb6f0800c45f3cfb907d69
2024-06-07 13:01:30 +00:00
Android Build Coastguard Worker
97ae037e5e Snap for 11926388 from 7039a1a15b to 24Q3-release
Change-Id: I3d4c52601850078afd2df6be9713f0be6c56b531
2024-06-05 00:21:36 +00:00
Treehugger Robot
7039a1a15b Merge "Convert to cargo_embargo" into main am: 9409581c44 am: 7b61d28776
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3094237

Change-Id: Ic5f6fea20bb96c8125e5e476bd32060c0c646ef8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-04 12:36:54 +00:00
Treehugger Robot
7b61d28776 Merge "Convert to cargo_embargo" into main am: 9409581c44
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3094237

Change-Id: I3559ce4af182faacef0575d53a1dc37410c4f63a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-04 12:20:41 +00:00
Treehugger Robot
9409581c44 Merge "Convert to cargo_embargo" into main 2024-06-04 11:54:11 +00:00
Android Build Coastguard Worker
35ab4c7088 Snap for 11920703 from 6366edd67b to 24Q3-release
Change-Id: I46ab9e3efa2900b64c3e74cac800fbdf8d523953
2024-06-04 00:00:37 +00:00
Devin Moore
6366edd67b [automerger skipped] Create and use a death recipient cookie object am: 95427c76cb am: 7db81bd6b2 am: 051a76ca91 -s ours
am skip reason: Merged-In I1c65c93577aee287e26fa23ded43d9e2efc90bf2 with SHA-1 95427c76cb is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/security/+/27183334

Change-Id: I5d490afd0f799a718fc426654c4851c5a4b68ee7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-03 17:54:12 +00:00
Devin Moore
b0e2e622a0 [automerger skipped] Create and use a death recipient cookie object am: 95427c76cb am: 926908b795 -s ours
am skip reason: Merged-In I1c65c93577aee287e26fa23ded43d9e2efc90bf2 with SHA-1 a17c771893 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/security/+/27183334

Change-Id: I7885194bfd94a26fc7f25f9f273a82156ac49f39
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-03 17:28:52 +00:00
Devin Moore
051a76ca91 Create and use a death recipient cookie object am: 95427c76cb am: 7db81bd6b2
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/security/+/27183334

Change-Id: Ia888c9f392c85d3030d57c7802a5cd308858172a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-03 17:28:52 +00:00
Devin Moore
7db81bd6b2 Create and use a death recipient cookie object am: 95427c76cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/security/+/27183334

Change-Id: I3a0a143345940a2e1173b9582faf8b000f1246fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-03 16:36:45 +00:00
Devin Moore
926908b795 Create and use a death recipient cookie object am: 95427c76cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/security/+/27183334

Change-Id: I0dc0b5586756d22493103b17e1a68420c886db4c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-03 16:36:11 +00:00
Android Build Coastguard Worker
f706a75770 Snap for 11908474 from 6942187dbd to 24Q3-release
Change-Id: I6882aa06ae377f2829e15ee5ac1302439cbb21ca
2024-05-30 23:25:30 +00:00
Cindy Lin
6942187dbd Merge "Implement mls-rs-crypto-traits backed by BoringSSL." into main am: a8fc566120 am: ab1d17e8d2
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3089793

Change-Id: I5509007155819dc315b09941cc385ed60daa74b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-30 10:06:17 +00:00
Cindy Lin
ab1d17e8d2 Merge "Implement mls-rs-crypto-traits backed by BoringSSL." into main am: a8fc566120
Original change: https://android-review.googlesource.com/c/platform/system/security/+/3089793

Change-Id: I19780c967e50877f8985d2cec489e1abe3c3cb7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-30 09:59:30 +00:00
Martin Geisler
3182da2136 Convert to cargo_embargo
Bug: 302021139
Test: m libmls_rs_uniffi in local checkout
Change-Id: I4a6c562bf09b844b71b91e71ca830d38bf3e71c0
2024-05-30 11:44:16 +02:00
Cindy Lin
a8fc566120 Merge "Implement mls-rs-crypto-traits backed by BoringSSL." into main 2024-05-30 09:27:49 +00:00
Automerger Merge Worker
69e50eb0eb Merge changes from topic "am-e77834e0fca14c5e8f661a2d4930d342" into main
* changes:
  [automerger skipped] Merge "Mark 2024-06 Release (ab/AP2A.240605.024) as merged in aosp-main-future" into aosp-main-future am: 8597f0f8ab -s ours
  [automerger skipped] Mark 2024-06 Release (ab/AP2A.240605.024) as merged in aosp-main-future am: 109d4d5b3f -s ours
2024-05-29 21:56:11 +00:00
Treehugger Robot
f1f0446fc6 [automerger skipped] Merge "Mark 2024-06 Release (ab/AP2A.240605.024) as merged in aosp-main-future" into aosp-main-future am: 8597f0f8ab -s ours
am skip reason: Merged-In I3aa48d05f367fafab5151fa7eb6dd447840dae0d with SHA-1 b10745144a is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/security/+/27545532

Change-Id: Ib095aa329ceaa71599d5e414714ee870f7e8b0b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-29 21:55:56 +00:00
Treehugger Robot
d304a2cc4f [automerger skipped] Merge "Mark 2024-06 Release (ab/AP2A.240605.024) as merged in aosp-main-future" into aosp-main-future am: 8597f0f8ab -s ours
am skip reason: Merged-In I3aa48d05f367fafab5151fa7eb6dd447840dae0d with SHA-1 b10745144a is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/security/+/27545532

Change-Id: I42dee2cd828d74e4f286f40be1df8b1bd236f945
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-29 21:55:55 +00:00
Xin Li
ca261c8c75 [automerger skipped] Mark 2024-06 Release (ab/AP2A.240605.024) as merged in aosp-main-future am: 109d4d5b3f -s ours
am skip reason: Merged-In I3aa48d05f367fafab5151fa7eb6dd447840dae0d with SHA-1 b10745144a is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/security/+/27545532

Change-Id: I87980f3bc1b3709703773b86941ec73523b5b4d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-29 21:55:50 +00:00
Xin Li
0a7c206299 [automerger skipped] Mark 2024-06 Release (ab/AP2A.240605.024) as merged in aosp-main-future am: 109d4d5b3f -s ours
am skip reason: Merged-In I3aa48d05f367fafab5151fa7eb6dd447840dae0d with SHA-1 b10745144a is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/security/+/27545532

Change-Id: I2ef16aad74b4ebb73b2e1a9339791715c9d7bc43
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-29 21:55:48 +00:00
Android Build Coastguard Worker
453f10c13b Snap for 11896415 from 1db2e8c725 to 24Q3-release
Change-Id: I6e08f7203d9bcd7bc797b9882145520fbbf40041
2024-05-28 23:25:53 +00:00
Treehugger Robot
8597f0f8ab Merge "Mark 2024-06 Release (ab/AP2A.240605.024) as merged in aosp-main-future" into aosp-main-future 2024-05-28 20:31:52 +00:00