aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2023-11-15 03:10:49 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-11-15 03:10:49 +0000
commit428ccf06a72d7affa2d12752ecdf4ba1afd59117 (patch)
treebbf2bae6dea43e9f29e36448e01c18c1ce49b1b0
parented51191d017cf430ce17cea48b87efbe36631f83 (diff)
parent96020787c765d1caf9661368fa46f63297c7b9fe (diff)
downloadgeneric-428ccf06a72d7affa2d12752ecdf4ba1afd59117.tar.gz
Merge "nugget: Update nugget command usage" into main
-rw-r--r--nugget/include/app_nugget.h23
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
*/
/**