Merge "Allow attestation chain to be up to 4k"
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 e95aa08..64f0839 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::