Allow attestation chain to be up to 4k

The chains are currently around the 2k limit previously chosen. Bump
this to 4k to avoid running out of space before the retrieveal API gets
replaced with something that's actually useful.

Fix: 252775935
Test: atest MicrodroidTests
Test: atest ComposHostTestCases
Change-Id: I97a8d0c3aa2dfcd1adedf79b22d6c057b908ce2a
diff --git a/compos/compos_key_helper/compos_key_main.cpp b/compos/compos_key_helper/compos_key_main.cpp
index 77a9cf9..bb2bac8 100644
--- a/compos/compos_key_helper/compos_key_main.cpp
+++ b/compos/compos_key_helper/compos_key_main.cpp
@@ -57,7 +57,7 @@
 }
 
 int write_bcc() {
-    uint8_t bcc[2048];
+    uint8_t bcc[4096];
     size_t bcc_size = get_dice_attestation_chain(bcc, sizeof(bcc));
     if (bcc_size == 0) {
         LOG(ERROR) << "Failed to get attestation chain";
diff --git a/tests/testapk/src/native/testbinary.cpp b/tests/testapk/src/native/testbinary.cpp
index d1cfc56..ae7ce24 100644
--- a/tests/testapk/src/native/testbinary.cpp
+++ b/tests/testapk/src/native/testbinary.cpp
@@ -96,7 +96,7 @@
         }
 
         ndk::ScopedAStatus getBcc(std::vector<uint8_t>* out) override {
-            uint8_t bcc[2048];
+            uint8_t bcc[4096];
             size_t bcc_size = get_dice_attestation_chain(bcc, sizeof(bcc));
             if (bcc_size == 0) {
                 return ndk::ScopedAStatus::