DPE: Create intermediate certificate for the layer

Signed-off-by: Maulik Patel <maulik.patel@arm.com>
Change-Id: Ib7df067daa3674f42bbff3b0296b7df192936caa
diff --git a/partitions/dice_protection_environment/dpe_log.c b/partitions/dice_protection_environment/dpe_log.c
index 5e4da40..05ee08c 100644
--- a/partitions/dice_protection_environment/dpe_log.c
+++ b/partitions/dice_protection_environment/dpe_log.c
@@ -99,4 +99,14 @@
     print_byte_array(label, label_size);
 }
 
+void log_intermediate_certificate(uint16_t layer_idx,
+                                  const uint8_t *cert_buf,
+                                  size_t cert_buf_size)
+{
+    LOG_DBGFMT("DPE Intermediate Certificate:\r\n");
+    LOG_DBGFMT(" - layer index = %d\r\n", layer_idx);
+    LOG_DBGFMT(" - certificate =");
+    print_byte_array(cert_buf, cert_buf_size);
+}
+
 #endif /* TFM_PARTITION_LOG_LEVEL */