DPE: Initialise target_locality argument
If target_locality is not encoded in input, initialise it
to the LOCALITY_NONE (no locality). Also, set locality
for RoT context to be RSE Secure.
Signed-off-by: Maulik Patel <maulik.patel@arm.com>
Change-Id: Id3ab6f954c121a84c68c58e2fa6d27dce00f703b
diff --git a/partitions/dice_protection_environment/dpe_cmd_decode.c b/partitions/dice_protection_environment/dpe_cmd_decode.c
index 644fb7c..ae53060 100644
--- a/partitions/dice_protection_environment/dpe_cmd_decode.c
+++ b/partitions/dice_protection_environment/dpe_cmd_decode.c
@@ -230,6 +230,7 @@
return_certificate = false;
allow_new_context_to_export = false;
export_cdi = false;
+ target_locality = DEFAULT_TARGET_LOCALITY;
/* Decode DeriveContext command */
QCBORDecode_EnterMap(decode_ctx, &item);