DPE: Add index field to layer_context_t

Both layer_ctx and layer_idx are used throughout and passed
as input to various functions. Add index field to the
layer_ctx so that only pointer to context is required
to pass and implementation stays consistent.

Signed-off-by: Maulik Patel <maulik.patel@arm.com>
Change-Id: I1603c82ef1c11d558e7f0bafecb1e2eecfe09885
diff --git a/partitions/dice_protection_environment/dpe_context_mngr.h b/partitions/dice_protection_environment/dpe_context_mngr.h
index d861d43..edcc9f3 100644
--- a/partitions/dice_protection_environment/dpe_context_mngr.h
+++ b/partitions/dice_protection_environment/dpe_context_mngr.h
@@ -93,6 +93,7 @@
 
 struct layer_context_t {
     struct layer_context_data_t data;
+    uint16_t idx;
     uint16_t parent_layer_idx;
     uint8_t attest_cdi_hash_input[DPE_HASH_ALG_SIZE];
     enum layer_state_t state;