diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-16 00:09:13 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-16 00:09:13 +0000 |
commit | 5ff2431d2c77a8d3ea438b808937390dad6d55d1 (patch) | |
tree | bbf2bae6dea43e9f29e36448e01c18c1ce49b1b0 | |
parent | 6e4adea273d9d8b2cba9d9cd1d811d76eec8e172 (diff) | |
parent | 428ccf06a72d7affa2d12752ecdf4ba1afd59117 (diff) | |
download | generic-5ff2431d2c77a8d3ea438b808937390dad6d55d1.tar.gz |
Snap for 11104212 from 428ccf06a72d7affa2d12752ecdf4ba1afd59117 to 24Q1-release
Change-Id: I90e9cc824cc771920d645353ab455aa30699510f
-rw-r--r-- | nugget/include/app_nugget.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/nugget/include/app_nugget.h b/nugget/include/app_nugget.h index 8852b18..49ca2de 100644 --- a/nugget/include/app_nugget.h +++ b/nugget/include/app_nugget.h @@ -462,10 +462,27 @@ struct gsa_gsc_psk_persist_storage { /* * GSA key provision command * - * @param args gsa unique public key + * We use the same command id to support multiple GSA-GSC PSK + * provision handshaking. List possible args and reply usage by + * each case. + * + * Non-secure PSK provision case: + * @param args GSA-GSC PSK (plaintext) * @param arg_len 32 - * @param reply gsc public key + sha256(pre-shared key) - * @param reply_len 64 + 32 + * @param reply GSA-GSC PSK (plaintext) + * @param reply_len 32 + * + * Ephemeral ec key handshaking case: + * @param args GSA public key + * @param arg_len 64 + * @param reply GSC public key + signature + * @param reply_len 64 + 64 + * + * Secure PSK provision case: + * @param args encrypted GSA-GSC PSK (nonce + PSK + tag) + * @param arg_len 12 + 32 + 16 + * @param reply <none> + * @param reply_len 0 */ /** |