feat(rmm): add 'hash_algo' RSI_REALM_CONFIG success condition
This patch makes the following changes as per
RMM Specification 1.0-eac2:
- adds 'enum hash_algo hash_algo' in 'realm_info'
structure set in smc_rec_create() function;
- defines RsiHashAlgorithm type macros
RSI_HASH_SHA_256 and RSI_HASH_SHA_512;
- adds 'hash_algo' field in 'rsi_realm_config'
structure of RsiRealmConfig type, which gets
set in handle_rsi_realm_config() as a success
condition of RSI_REALM_CONFIG command.
Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
Change-Id: Ib4f85af706f51560325a1993f1171b1b858020e2
diff --git a/lib/realm/include/rec.h b/lib/realm/include/rec.h
index 8140af1..34cc31b 100644
--- a/lib/realm/include/rec.h
+++ b/lib/realm/include/rec.h
@@ -178,6 +178,7 @@
struct granule *g_rd;
bool pmu_enabled;
unsigned int pmu_num_ctrs;
+ enum hash_algo hash_algo;
bool sve_enabled;
uint8_t sve_vq;
} realm_info;